mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 18:36:01 +00:00
9b2001114d
The three customcast handlers (Aimed Shot, Multi-Shot, Steady Shot) each iterated 1..32 UnitBuff slots checking the same four icon paths for haste-providing buffs. Lifted into libcast.ApplyShotHaste which iterates the populated auras once via C_UnitAuras.GetUnitAuras and reads from a single SHOT_HASTE lookup table. Three loop copies collapse to one helper. Kept texture-keyed matching (rather than spellID) because the Naxx trinket and Quick Shots procs have spell-ID variants across server flavors but stable icons.