SetSpellCooldownRemaining
function · spell · primitive
- Address
0x6e2c60· 380 bytes, up to0x6e2ddb- Signature
void __fastcall (int32_t spell, int32_t item, int32_t category, int32_t recovery, int32_t catRecovery, uint8_t held, uint32_t pet, uint32_t unused)- Meaning
- Adds a spell-history record from remaining times, back-dating the starts so the remainders hold
- Confidence
- verified, proof one
- Finding
- spell/cooldowns#cooldowns-from-remaining-times
Finding: Cooldowns from remaining times in spell: cooldowns
0x6e2c60(spell, item, category, recovery, categoryRecovery, held, pet) records cooldowns given as
remaining milliseconds. A positive recovery gives time = mod11(max(base, recovery)) and start = now − time + recovery, the base being the item slot's +0x158 when nonnegative, else the
spell's +0x4c. A positive categoryRecovery gives catTime = max(c, categoryRecovery) and
catStart = now − catTime + categoryRecovery, c being the slot's +0x180 when nonnegative,
else 0x6e2b60(spell +0x50, skip = pet). It adds the record with no global cooldown and fires no
event.
The derivation is in the doc.
Callers 3
- AddSpellToBook ui
- OnPetSpells ui
- ReadInitialSpells objectlayer
Callees 5
- OsGetAsyncTimeMs core
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- SpellHistory::AddRecord spell
- AdjustCategoryRecovery spell
- ApplySpellModifierInt spell
Calls and jumps by a bare address, from tables/calls.tsv.