Ignore unrelated unit power events in Energy Tick

This commit is contained in:
Dusk-92
2026-09-04 20:49:30 +02:00
parent 575f8807cd
commit 9704b5fe19
+4
View File
@@ -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