CGUnit_C::CanAssist_Unit
function · objectlayer · primitive
- Address
0x6066f0· 224 bytes, up to0x6067cf- Signature
bool __thiscall (CGUnit_C *this, CGUnit_C *other)- Meaning
- Returns whether a unit may assist another: selectable, reaction 4 or more, then the duel, free-for-all or PvP test
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- objectlayer/reaction#assisting-cooperating-and-interacting
Finding: Assisting, cooperating and interacting in objectlayer: reaction
0x6066f0(this = A, B) lets A assist B when B is selectable (bit 25 clear) and A's reaction is 4
or more. A controlled B's dueling player must share A's duel and team; a
free-for-all one needs A's too; a missing player passes. An uncontrolled B passes for an
uncontrolled A. Else, with a live charmer or creator unit, B fails on its own bit 8 and takes
that unit's PvP flag; without one, it takes its own. A corpse needs a reaction of 4. Cooperating
needs two uncharmed units, not one, with equal group masks. Interacting needs a selectable B
with NPC flags, both reactions at least 3, and for a ghost A, a creature seen by ghosts.
The derivation is in the doc.
Callers 13
- AdmitPickUnit ui
- CGWorldFrame::ClassifyHoveredUnit ui
- SelectAreaSpiritHealer ui
- CGGameUI::TargetKindAccepts ui
- Script::UnitCanAssist ui
- Script::UnitBuff ui
- CGTooltip::BuildUnit ui
- CGUnit_C::Interact objectlayer
- IsSpellUsable spell
- CheckSpellTargetRange spell
- BindSpellTargetObject spell
- SpellCanTargetObject spell
- HandleSpellStart spell
Callees 3
- CGUnit_C::IsPVPUI objectlayer
- CGUnit_C::GetControllingPlayer objectlayer
- CGUnit_C::UnitReaction objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.