StartOrRemoveSpellCooldown
function · spell · orchestration
- Address
0x6e3050· 66 bytes, up to0x6e3091- Signature
void __fastcall (int32_t spell, uint32_t time, uint32_t pet, uint32_t remove)- Meaning
- Starts or removes a spell's records on a list through 0x6e1790 and fires the cooldown and usable events
- Confidence
- verified, proof one
- Finding
- spell/cooldowns#starting-or-removing-a-spell
Finding: Starting or removing a spell in spell: cooldowns
0x6e3050(spell, time, pet, remove) calls 0x6e1790 on the list. For each record of the spell:
with remove, it moves the record to the free list; without it, a held record gets
start = categoryStart = time and a cleared held byte, while an unheld record is left alone.
Then it fires the cooldown and usable events and, for the pet's list, PET_BAR_UPDATE_COOLDOWN,
else BAG_UPDATE_COOLDOWN (Cooldown events fired). The global leg reads the start, so a
started record's global cooldown runs again from time.
The derivation is in the doc.
Callers 3
- ReportCastFailure spell
- CastResultHandler spell
- CooldownEvent spell
Callees 5
- FireCooldownEvents ui
- FireUsableEvents ui
- FirePetBarCooldownEvent ui
- RaiseBagUpdateCooldown ui
- SpellHistory::StartOrRemove spell
Calls and jumps by a bare address, from tables/calls.tsv.