benilla-re systems structs docs

SPELLHISTORY

struct · spell · 48 bytes

Meaning
Holds one spell-history record: link, spell, item, three timers and a held flag
Confidence
verified, proof one
Finding
spell/cooldowns#history-record-layout

Finding: History record layout in spell: cooldowns

Each of the two is 24 bytes: a record list (link offset 0, then its end link) and a free list of the same shape. A record is a link at +0x00, then the spell id, item id, recovery start, recovery time, category, category start, category time, a held byte at +0x24, the global-cooldown category and the global-cooldown time at +0x2c. Times are milliseconds of the OsGetAsyncTimeMs (0x42c010) clock.

The derivation is in the doc.

Fields 11

offsetsizetypenamemeaningconfidencefinding
0x00008void *[2]m_linkHolds the record's link in its record or free listverified, proof onespell/cooldowns#history-record-layout
0x00084int32_tm_spellIdHolds the spell the record is forverified, proof onespell/cooldowns#history-record-layout
0x000c4int32_tm_itemIdHolds the item entry the record is for, 0 for a spell aloneverified, proof onespell/cooldowns#history-record-layout
0x00104uint32_tm_recoveryStartHolds the recovery's start time, which the global leg also readsverified, proof onespell/cooldowns#history-record-layout
0x00144uint32_tm_recoveryTimeHolds the recovery's length in millisecondsverified, proof onespell/cooldowns#history-record-layout
0x00184int32_tm_categoryHolds the category whose spells share the category recoveryverified, proof onespell/cooldowns#history-record-layout
0x001c4uint32_tm_categoryStartHolds the category recovery's start timeverified, proof onespell/cooldowns#history-record-layout
0x00204uint32_tm_categoryTimeHolds the category recovery's length in millisecondsverified, proof onespell/cooldowns#history-record-layout
0x00241uint8_tm_onHoldHolds 1 while the record waits for the server to start itverified, proof onespell/cooldowns#history-record-layout
0x00284int32_tm_gcdCategoryHolds the global-cooldown category the record blocksverified, proof onespell/cooldowns#history-record-layout
0x002c4uint32_tm_gcdTimeHolds the global cooldown's length in millisecondsverified, proof onespell/cooldowns#history-record-layout