From 861c505038118f608a33e077e6a3546f62ae67ad Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 16 Jul 2018 14:44:06 +0200 Subject: [PATCH] tracking: reset spellcache when spellindex changes --- modules/tracking.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/tracking.lua b/modules/tracking.lua index 50734869..588285b2 100644 --- a/modules/tracking.lua +++ b/modules/tracking.lua @@ -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