SpellRec
struct · dbc · 692 bytes
- Meaning
- Holds one Spell.dbc row
- Confidence
- inferred
- Finding
- spell/records#record-lookups
Finding: Record lookups in spell: records
Every getter finds a record the same way: an id below 0 or above the store's +0x0c bound, or a
null pointer in the store's +0x08 table at that id, is no record. The stores are Spell.dbc
0xc0d780, SpellRange.dbc 0xc0d794, SpellDuration.dbc 0xc0d820, SpellCastTimes.dbc
0xc0d870 and ChrClasses.dbc 0xc0deec.
The derivation is in the doc.
Fields 26
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_id | Holds the record's id, which the level lookup and the histories take | verified, proof one | spell/records#effect-amount-formula |
0x0004 | 4 | uint32_t | m_school | Indexes the unit's per-school cost modifier and multiplier | verified, proof one | spell/records#power-cost |
0x0018 | 4 | uint32_t | m_attributes | Holds flags: 0x404 fixes the range, 0x30 skips cast speed, bit 1 the ranged item, bit 25 the held flag | verified, proof one | spell/records#range |
0x0024 | 4 | uint32_t | m_attributesEx3 | Holds flags; bit 29 makes the record take no talent modifier | verified, proof one | spell/records#modifier-sums |
0x0048 | 4 | uint32_t | m_castingTimeIndex | Names the SpellCastTimes row | verified, proof one | spell/records#cast-time |
0x006c | 4 | int32_t | m_maxLevel | Caps the slot 42 level value at itself times 5 when positive | verified, proof one | spell/records#caster-level |
0x0070 | 4 | int32_t | m_baseLevel | Is subtracted from the caster level in every level term | verified, proof one | spell/records#effect-amount-formula |
0x0078 | 4 | uint32_t | m_durationIndex | Names the SpellDuration row | verified, proof one | spell/records#duration |
0x007c | 4 | int32_t | m_powerType | Selects the base a percentage cost scales | verified, proof one | spell/records#power-cost |
0x0080 | 4 | int32_t | m_manaCost | Holds the base power cost | verified, proof one | spell/records#power-cost |
0x0084 | 4 | int32_t | m_manaCostPerLevel | Holds the power cost added per level | verified, proof one | spell/records#power-cost |
0x0088 | 4 | int32_t | m_manaPerSecond | Holds the base power per second | verified, proof one | spell/records#power-cost |
0x008c | 4 | int32_t | m_manaPerSecondPerLevel | Holds the power per second added per level | verified, proof one | spell/records#power-cost |
0x0090 | 4 | uint32_t | m_rangeIndex | Names the SpellRange row | verified, proof one | spell/records#range |
0x00f4 | 12 | uint32_t[3] | m_effect | Holds each effect's code, which the effect classifier reads | verified, proof one | spell/records#effect-amount-formula |
0x0100 | 12 | int32_t[3] | m_effectDieSides | Multiplies the dice count in each effect's maximum | verified, proof one | spell/records#effect-amount-formula |
0x010c | 12 | int32_t[3] | m_effectBaseDice | Holds each effect's dice count at the base level | verified, proof one | spell/records#effect-amount-formula |
0x0118 | 12 | int32_t[3] | m_effectDicePerLevel | Holds each effect's dice added per level | verified, proof one | spell/records#effect-amount-formula |
0x0124 | 12 | float[3] | m_effectRealPointsPerLevel | Holds each effect's float amount added per level | verified, proof one | spell/records#effect-amount-formula |
0x0130 | 12 | int32_t[3] | m_effectBasePoints | Holds each effect's integer base amount | verified, proof one | spell/records#effect-amount-formula |
0x016c | 12 | uint32_t[3] | m_effectApplyAuraName | Holds each effect's aura code, which selects the effect amount's modifier ops | verified, proof one | spell/records#effect-amount-modifiers-and-rounding |
0x0270 | 4 | int32_t | m_manaCostPct | Holds the percent of the power base added to the cost | verified, proof one | spell/records#power-cost |
0x0274 | 4 | uint32_t | m_startRecoveryCategory | Holds the global cooldown category | verified, proof one | spell/records#global-cooldown-start |
0x0278 | 4 | int32_t | m_startRecoveryTime | Holds the global cooldown time in ms, before op 21 | verified, proof one | spell/records#global-cooldown-start |
0x0280 | 4 | uint32_t | m_spellClassSet | Holds the spell family the modifier sums compare with the class's | verified, proof one | spell/records#modifier-sums |
0x0284 | 8 | uint32_t[2] | m_spellClassMask | Holds the 64-bit family mask, low dword first, whose bits select modifier cells | verified, proof one | spell/records#modifier-sums |