SpellDurationRec
struct · dbc · 16 bytes
- Meaning
- Holds one SpellDuration.dbc row: id, duration, per-level duration and maximum in ms
- Confidence
- inferred
- Finding
- spell/records#duration
Finding: Duration in spell: records
0x6ea000(spell, pet, unmodified) returns 0 for a null record or no SpellDuration row at +0x78.
Else d = (L − base)·perLevel + duration from the row's +0x08 and +0x04, replaced by the row's
+0x0c unless below it; then, unless unmodified, the integer applier with op 1. The level term
is not floored and nothing is clamped.
The derivation is in the doc.
Fields 3
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0004 | 4 | int32_t | m_duration | Holds the duration at the base level, in ms | verified, proof one | spell/records#duration |
0x0008 | 4 | int32_t | m_durationPerLevel | Holds the duration added per level above the base level | verified, proof one | spell/records#duration |
0x000c | 4 | int32_t | m_maxDuration | Holds the cap the level-scaled duration is lowered to | verified, proof one | spell/records#duration |