benilla-re systems structs docs

Script::UnitBuff

function · ui · primitive

Address
0x519500 · 862 bytes, up to 0x51985d
Signature
int __fastcall (lua_State *L)
Meaning
Pushes a unit's index-th buff icon and stack count, gated by who may see buffs
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 19

Calls and jumps by a bare address, from tables/calls.tsv.