Script::UnitIsTapped
function · ui · orchestration
- Address
0x519c90· 108 bytes, up to0x519cfb- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes 1 when UNIT_DYNAMIC_FLAGS bit 0x4 is set, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/unitinfo#tapped-and-the-dynamic-flags
Finding: Tapped and the dynamic flags in ui: unit presence, flags, classification and type
UnitIsTapped(unit) is 1 when UNIT_DYNAMIC_FLAGS (+0x224) has bit 0x4; UnitIsTappedByPlayer(unit) when it has bit 0x8. Both raise on a missing argument and answer nil for an unresolved unit.
The client reads the word in eight places by bit:
| bit | meaning | reader |
|---|---|---|
| 0x1 | lootable: sparkle on, tutorial 6 | 0x600440 |
| 0x2 | shown by tracking | 0x5ed244 |
| 0x4 | tapped; a change signals UNIT_FACTION (id 29) | 0x6005a1, 0x519cd0 |
| 0x8 | tapped by the player | 0x519d40 only |
| 0x10 | has special tooltip information | 0x52a8ea |
| 0x20 | dead, beside health | 22 load sites |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- GetUnitFromToken ui
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.