GetSpellDuration
function · spell · primitive
- Address
0x6ea000· 125 bytes, up to0x6ea07c- Signature
int32_t __fastcall (const void *spell, uint8_t pet, uint8_t unmodified)- Meaning
- Computes a spell's duration from its duration row, capped at the row maximum, then op 1
- Confidence
- verified, proof one
- 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.
Callers 1
Callees 2
- GetSpellLevel spell
- ApplySpellModifierInt spell
Calls and jumps by a bare address, from tables/calls.tsv.