tracking: reset spellcache when spellindex changes

This commit is contained in:
shagu
2018-07-16 14:44:06 +02:00
parent d365e1c1cb
commit 861c505038
+4
View File
@@ -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