Script::GetRaidTargetIndex
function · ui · primitive
- Address
0x4bb4b0· 127 bytes, up to0x4bb52e- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the 1-based raid target icon of a unit, or nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/raid#the-raid-target-table
Finding: The raid target table in ui: the raid roster, ready check and raid targets
GetRaidTargetIndex(unit) pushes one value, the unit's 1-based icon number 1 to 8, or nil. The table 0xb71368 holds eight GUIDs; 0x4bb190(guid) returns the slot of a
GUID or 8. The wire is 0-based, the Lua side 1-based. Opcode 0x321 arrives at 0x4ba220: u8 mode; a nonzero mode clears all eight and refreshes the nameplate icon of each former holder;
then u8 slot, u64 guid pairs are read to the end, each refreshing the old and new holder, and RAID_TARGET_UPDATE is signalled once. A group list without the raid flag also
clears the table (0x4ba550): when the roster was not empty it shows ERR_RAID_YOU_LEFT and signals RAID_ROSTER_UPDATE; it always zeroes the table and signals RAID_TARGET_UPDATE.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- FindRaidTargetSlot ui
- Script::GetGUIDFromName 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.