Files
amibis/Amibis
dfj e08e288f73 Read TBC school-specific haste and crit item stats
TBC items report per-school ratings with a different key shape than the
WotLK-era names the addon mapped: "spell haste" is
ITEM_MOD_HASTE_SPELL_RATING(_SHORT), not ITEM_MOD_SPELL_HASTE_RATING,
and crit is ITEM_MOD_CRIT_SPELL_RATING/MELEE/RANGED rather than
ITEM_MOD_SPELL_CRIT_RATING. As a result spell haste (and spell/melee
crit) on TBC gear scanned as zero, so the stats panel showed no haste
and upgrade scoring ignored it.

Map the TBC haste/crit keys alongside the existing generic ones, plus
non-_SHORT variants for safety. The alias logic still takes MAX per
stat, so an item that reports both forms is not double counted.

Tests cover TBC spell haste + crit, melee/ranged haste keys, and
generic+school-specific de-duplication. 96 passing.
2026-10-24 00:50:02 +02:00
..
2026-06-04 00:04:49 +02:00