benilla-re systems structs docs

Script::UnitIsPVP

function · ui · primitive

Address
0x516460 · 214 bytes, up to 0x516535
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when a unit is flagged for PVP
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitverbs#pvp-flags

Finding: PVP flags in ui: time, console and the remaining unit functions

UnitIsPVP(unit) returns 1 for a unit that is flagged for PVP (IsPVPUI), for a corpse whose field at +0x74 has bit 2, and, when the token names no object but a remote party member, for a remote stats byte with bit 1. UnitIsPVPFreeForAll(unit) returns 1 for a unit that has the flag bit 3 of its unit flags and whose controlling player has the free-for-all flag (bit 7 of the player flags), or for a remote party member with bit 4 of the stats byte. Both raise the usage text for a non-string and answer nil otherwise.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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