benilla-re systems structs docs

SpellHistory::StartOrRemove

function · spell · orchestration

Address
0x6e1790 · 230 bytes, up to 0x6e1875
Signature
void __thiscall (SpellHistory *this, int32_t spell, uint32_t time, uint8_t remove)
Meaning
Removes a spell's records, or without remove starts its held records at a time
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 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.