mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
tracking: reset spellcache when spellindex changes
This commit is contained in:
@@ -67,6 +67,10 @@ pfUI:RegisterModule("tracking", function ()
|
||||
pfUI.tracking:RegisterEvent("SPELLS_CHANGED")
|
||||
pfUI.tracking:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
|
||||
pfUI.tracking:SetScript("OnEvent", function()
|
||||
if event == "SPELLS_CHANGED" then
|
||||
state.spells = {}
|
||||
end
|
||||
|
||||
this:RefreshSpells()
|
||||
local texture = GetTrackingTexture()
|
||||
if texture and texture ~= state.texture then
|
||||
|
||||
Reference in New Issue
Block a user