IsActivePlayerUnit
function · objectlayer · orchestration
- Address
0x5fa6d0· 36 bytes, up to0x5fa6f3- Signature
uint32_t __thiscall (void *this)- Meaning
- Returns 1 when a unit's GUID is the active player's, else 0
- Confidence
- verified, proof one
- Finding
- spell/failures#spell-failure-packets
Finding: Spell failure packets in spell: failures
SMSG_SPELL_FAILURE (0x133) carries a u64 caster GUID, a u32 spell id and a u8 reason. For
a known unit, 0x6e8d80 calls 0x60d040(spell, 1, 1) and 0x614150(spell, 0), passes the spell and
the unit to 0x458a50, calls 0x6ea080 (cast) when the unit is the active player and the
reason is 0x2f, 0x30 or 0x31, then 0x60fc50 and, when 0x611590(1) holds, 0x60fb60(0, 1). It
shows no message and fires STOP_AUTOREPEAT_SPELL on the 0x6ea080 leg, and other events and sends through its callees (What the failure handler signals). SMSG_SPELL_FAILED_OTHER (0x2a6), a u64 GUID and a u32
spell id, makes 0x6e8e40 call only the first two. Both return 1. The names are the server's.
The derivation is in the doc.
Callers 46
- AdmitPickUnit ui
- ExpandServerToken ui
- CanControlUnit input
- CGUnit_C::SetClientControl objectlayer
- CGUnit_C::UpdateSheatheForAnimation objectlayer
- CGUnit_C::OnResurrect objectlayer
- CGUnit_C::ShowAuraSlot objectlayer
- CGUnit_C::OnUnitFlagsChanged objectlayer
- CGUnit_C::OnBytes1Byte3Changed objectlayer
- SetActiveMover objectlayer
- CGUnit_C::OnHealthFieldChanged objectlayer
- CGUnit_C::RefreshReaction objectlayer
- CGUnit_C::ShouldShowName objectlayer
- CGUnit_C::Tick objectlayer
- CGUnit_C::UpdateCollisionSize objectlayer
- CGUnit_C::UpdateUnitTokenFlags objectlayer
- CGUnit_C::KnowsSpell objectlayer
- UnitClearPrecastSpell objectlayer
- CGUnit_C::OnChannelObjectChanged objectlayer
- CGUnit_C::Jump objectlayer
- CGUnit_C::OnMoveInput objectlayer
- CGUnit_C::CompleteInteractMove objectlayer
- CGUnit_C::SetSheatheState objectlayer
- CGUnit_C::RefreshRangedWeaponModel objectlayer
- CGUnit_C::OnAuraRemoved objectlayer
- CGUnit_C::OnAuraAdded objectlayer
- CGUnit_C::IsLooting objectlayer
- CGUnit_C::GetLootGuid objectlayer
- CGUnit_C::ShowsLootAnimation objectlayer
- CGUnit_C::OnStandStateChanged objectlayer
- CGUnit_C::StartChannelVisual objectlayer
- CGUnit_C::GetGenderedText objectlayer
- CGUnit_C::StartAttack objectlayer
- OnEnvironmentalDamage objectlayer
- PresentUnitDeath objectlayer
- HandleUnitCombatMessage objectlayer
- LogHappinessDrain objectlayer
- CombatLogSpellCast objectlayer
- LogCastFailure objectlayer
- CheckSpellTotemsAndReagents spell
- CheckSpellEquippedItem spell
- TryCastSpell spell
- SendCast spell
- SpellFailedHandler spell
- PlaySpellPrecastVisual spell
- EndSpellPrecastVisual spell
Callees 1
- ClntObjMgrGetActivePlayer objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.