Script::UnitDebuff
function · ui · primitive
- Address
0x5198f0· 928 bytes, up to0x519c8f- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes a unit's index-th debuff icon, stack count and dispel type
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/auradisplay#unitbuff-and-unitdebuff
Finding: UnitBuff and UnitDebuff in ui: the buff display functions
UnitBuff(unit, index [, filter]) and UnitDebuff(unit, index [, filter]) raise Usage: UnitBuff("unit", index [,raidFilter]) (and the matching text) for a non-string unit or non-number index. The index is 1-based within the half and counts only the slots that pass: 1 to 32 for buffs from slots 0 to 31, 1 to 16 for debuffs from slots 32 to 47.
UnitBuff pushes the icon path and the stack count (applications byte plus one), UnitDebuff also the dispel string; a missing icon pushes nil and 0 (and nil), and no match or an index out of range pushes a single nil. The third argument is read as a script flag (actionuse#reading-a-script-flag).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 17
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- GPartyInfo::GetRemoteStats ui
- GetPartyPetRecord ui
- IsInSpellList ui
- Script::GetGUIDFromName ui
- IsAuraDisplayable ui
- CGObject_C::IsReleased objectlayer
- GetScriptFlagArg ui
- lua_isnumber lua
- lua_isstring lua
- lua_tonumber lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.