SpellCastTimesRec
struct · dbc · 16 bytes
- Meaning
- Holds one SpellCastTimes.dbc row: id, base, per-level and minimum cast time in ms
- Confidence
- inferred
- Finding
- spell/records#cast-time
Finding: Cast time in spell: records
0x6e3340(spellId, pet, allowNegative) returns 0 without a record or cast-time row. Else
t = max((L − base)·perLevel + base, minimum) from the SpellCastTimes record named by +0x48,
then the integer applier with op 10. Unless the record's +0x18 has a bit of 0x30, the caster
unit exists and t > 0: with m the unit's float at +0x22c, if |m − 1| ≥ 2^-22, or m is
NaN, t = rint((float)(m·t)). Finally, unless allowNegative, t ≤ 0 gives 0.
The derivation is in the doc.
Fields 3
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0004 | 4 | int32_t | m_base | Holds the cast time at the base level, in ms | verified, proof one | spell/records#cast-time |
0x0008 | 4 | int32_t | m_perLevel | Holds the cast time added per level above the base level | verified, proof one | spell/records#cast-time |
0x000c | 4 | int32_t | m_minimum | Holds the floor the level-scaled cast time is raised to | verified, proof one | spell/records#cast-time |