Script::UnitIsPVPFreeForAll
function · ui · primitive
- Address
0x516540· 227 bytes, up to0x516622- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when a unit is flagged free for all 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
- ClntObjMgrObjectPtr objectlayer
- GPartyInfo::GetRemoteStats ui
- Script::GetGUIDFromName ui
- CGUnit_C::GetControllingPlayer objectlayer
- 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.