mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
782c685fba
GetSpellCost now reads power cost and reagents straight from Spell.dbc via C_Spell.GetSpellPowerCost (effective, talent-modified cost) and C_Spell.GetSpellReagents (itemID), dropping the GameTooltip owner/scan frames, their font strings, and all locale-dependent line parsing. Reagent counting is now itemID-based end to end: GetReagentCount takes an itemID and matches by id in the Items cache / bag scan. This removes the hardcoded English reagent tables (_ReagentBySpell, _ReagentIdByName) and the name-matching bag-scan tooltip, so it works on any client locale. Verified in-game that GetSpellReagents covers DBC reagent spells (Vanish -> Flash Powder), which the hand table previously special-cased. The localized reagent name is still used for countedItemTypes registration (recognizing a reagent item placed on the action bar); when that name isn't cached yet, warm it via the ClassicAPI Item mixin (Item:CreateFromItemID/ContinueOnItemLoad) and register it once it lands.