From 75c97c6e59ead4fbf4d900af0cdb1093ed9c04ac Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:12:14 +0100 Subject: [PATCH] fix for mana ticks still showing up in some situations with full mana --- modules/energytick.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/energytick.lua b/modules/energytick.lua index 8b85021d..fceeb239 100644 --- a/modules/energytick.lua +++ b/modules/energytick.lua @@ -66,6 +66,7 @@ pfUI:RegisterModule("energytick", "vanilla:tbc", function() elseif this.mode == "MANA" and diff > 0 then if UnitMana("player") >= UnitManaMax("player") then this.start = nil + this.spark:SetAlpha(0) this:Hide() elseif this.max ~= 5 and diff > (this.badtick and this.badtick * 1.2 or 5) then this.target = 2 @@ -103,6 +104,12 @@ pfUI:RegisterModule("energytick", "vanilla:tbc", function() this.current = GetTime() - this.start if this.current > this.max then + -- Don't restart tick timer if mana is full + if this.mode == "MANA" and UnitMana("player") >= UnitManaMax("player") then + this.start = nil + this.spark:SetAlpha(0) + return + end this.start, this.max, this.current = GetTime(), getAdjustedTickTimer(), 0 end