PlaySpellPrecastVisual
function · spell · primitive
- Address
0x6ec220· 296 bytes, up to0x6ec347- Signature
void __fastcall (uint32_t spellId, const void *targets, void *unit)- Meaning
- Logs a unit's cast, records the spell on it through 0x60d020 and plays its visual's precast kit
- Confidence
- verified, proof one
- Finding
- spell/visuals#precast-visual-at-cast-start
Finding: Precast visual at cast start in spell: visuals
0x6ec220(spellId, targets, unit) does nothing for a null or non-unit object. It calls the
combat-log function 0x62b1b0; prints NOSPELLIDFOUND|%d and returns for an unknown spell;
picks the visual through 0x60d450, printing SPELLVISUALIDNOTFOUND|%d and returning with none;
records the spell on the unit through 0x60d020; plays the visual's +0x04 kit through
0x60edf0(spell, kit, 4, 0) when it exists. For the active player, spell attribute bit 0x400000
and a unit target (flag 2 at targets+0x14, a nonzero GUID at +0x18), it calls 0x60fed0
with that GUID.
The derivation is in the doc.
Callers 2
- SendCast spell
- HandleSpellStart spell
Callees 9
- SysMsgPrintf sysmsg
- SpellVisualRecConstruct dbc
- SpellVisualRecDestruct dbc
- IsActivePlayerUnit objectlayer
- UnitSetPrecastSpell objectlayer
- UnitGetSpellVisual objectlayer
- PlayUnitSpellVisualKit objectlayer
- CGUnit_C::StartAutoMoveToObject objectlayer
- CombatLogSpellCast objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.