CGPlayer_C::GetSpellCastTime
function · objectlayer · primitive
- Address
0x5ee150· 277 bytes, up to0x5ee264- Signature
uint32_t __thiscall (CGPlayer_C *this, uint32_t spell)- Meaning
- Returns a spell's cast time with the casting-time modifier and cast speed, plus 500 for Attributes 0x2 (slot 45)
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#cast-time
- Test
objectlayer::player_cast_time_difftest,objectlayer::player_cast_time_special_values_difftest
Finding: Cast time in objectlayer: player spells and combat
Slot 45 (0x5ee150) is the unit's cast time (auras) with two differences: the active player's
time goes through the casting-time spell modifier (10) before the speed, and Attributes 0x2 adds
500 ms where the unit's time becomes 0x7fffffff. The speed multiplies only a positive time, and
is skipped when it is less than 2^−22 from 1.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- ClntObjMgrGetActivePlayer objectlayer
- ApplySpellModifierInt spell
Calls and jumps by a bare address, from tables/calls.tsv.