Script::UnitIsFriend
function · ui · orchestration
- Address
0x516930· 307 bytes, up to0x516a62- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes 1 when two units are friends by reaction or the roster fallback, else nil
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/unitplayer#friend-and-cooperation-fallbacks
Finding: Friend and cooperation fallbacks in ui: the player token before the player object
UnitIsFriend and UnitCanCooperate take two tokens. When either object is missing, or the reaction is below 4, each side that is exactly the string player hands the other side's GUID to 0x491900: friendly when that GUID is
the player's own, its charm or summon, or on the party or raid roster. This needs no object, and it is not the record.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 10
- ClntObjMgrObjectPtr objectlayer
- IsRaidMemberOrPet ui
- Script::GetGUIDFromName ui
- CGUnit_C::UnitReaction objectlayer
- SStrCmpI storm
- 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.