From 9704b5fe1983c3c2296bd6c3fb8b2165ccfabfeb Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Fri, 4 Sep 2026 20:49:30 +0200 Subject: [PATCH] Ignore unrelated unit power events in Energy Tick --- mods/unitframes-energy-tick.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/unitframes-energy-tick.lua b/mods/unitframes-energy-tick.lua index 6a668ef..9fe061d 100644 --- a/mods/unitframes-energy-tick.lua +++ b/mods/unitframes-energy-tick.lua @@ -16,6 +16,10 @@ module.enable = function(self) energytick:RegisterEvent("UNIT_ENERGY") energytick:RegisterEvent("UNIT_MANA") energytick:SetScript("OnEvent", function() + -- This module only tracks the player. Ignore unrelated unit events before + -- doing any power queries or visibility work. + if arg1 and arg1 ~= "player" then return end + if UnitPowerType("player") == 0 then this.mode = "MANA" -- hide if full mana and not in combat