ReportCastFailure
function · spell · primitive
- Address
0x6e1a00· 2138 bytes, up to0x6e2259- Signature
void __fastcall (uint32_t spell, uint8_t reason, int32_t arg3, int32_t arg4, uint8_t fromServer)- Meaning
- Reports a failed cast: picks the message id, builds and fills the reason text, shows and logs it, fires the event
- Confidence
- verified, proof one
- Finding
- spell/failures#reporter-inputs-and-first-effects
Finding: Reporter inputs and first effects in spell: failures
0x6e1a00 is fastcall(spell, reason) with three stack arguments and ret 0xc: two words (−1
when there is none) and a byte that is nonzero only from SMSG_CAST_RESULT. It looks the spell up
in Spell.dbc by id. First, for every reason: when the spell is the trade-skill repeat spell,
0x4fd790 clears that spell and fires UPDATE_TRADESKILL_RECAST (502). Then, when the record and
the active player exist, 0x458a50 takes the spell and the player as a unit and passes the id in
field 2 of the Resistances.dbc row named by the spell's school, field 1, to the sound call
0x458870. After the
reason's text is built, the from-server byte alone calls 0x6e1630 (cooldowns) with the spell.
The derivation is in the doc.
Callers 9
- ValidateSpellItemTarget ui
- CheckCasterStateForSpell objectlayer
- CheckSpellTotemsAndReagents spell
- CheckSpellEquippedItem spell
- CheckSpellTargetRange spell
- TryCastSpell spell
- BindSpellTargetObject spell
- Script::SpellTargetUnit spell
- CastResultHandler spell
Callees 26
- PlaySpellSchoolSound sound
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- GetLastDisplayedMessage ui
- FireTutorial ui
- ClearTradeSkillRecast ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- CGUnit_C::UpdateBaseAnimation objectlayer
- UnitClearPrecastSpell objectlayer
- CGUnit_C::EndRangedPose objectlayer
- CGUnit_C::StopSpellKits objectlayer
- LogCastFailure objectlayer
- SStrCopy storm
- SStrPack storm
- SStrPrintf storm
- SpellHistory::ClearGlobalCooldown spell
- SpellHistory::HasHeldRecord spell
- FindItemSubClassByMask spell
- GetCastFailureKey spell
- StartOrRemoveSpellCooldown spell
- IsCastInFlight spell
- CancelCast spell
- StopAutoRepeatSpell spell
- FrameScript_GetText ui
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.