benilla-re systems structs docs

Script::UnitIsUnit

function · ui · primitive

Address
0x516070 · 222 bytes, up to 0x51614d
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when two unit tokens name the same unit
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitverbs#same-unit-and-membership

Finding: Same unit and membership in ui: time, console and the remaining unit functions

UnitIsUnit(a, b) returns 1 when the two strings are equal without regard to case, even if neither names a unit, and otherwise when both resolve to the same nonzero GUID; else nil. A non-string raises Usage: UnitIsUnit("unit", "otherUnit"). UnitInParty(unit) returns 1 when the GUID is a party member, UnitPlayerOrPetInParty(unit) 1 for a party member or pet and UnitPlayerOrPetInRaid(unit) 1 for a raid member or pet, else nil; none of the three checks its argument.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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