From 9a4fef71ff1cabeb7354dafc4a012a7bca9cf052 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 21 Mar 2026 12:56:34 +0100 Subject: [PATCH] fixed maxpower not showing properly for warriors --- api/unitframes.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index f47893a8..023bed43 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -281,10 +281,11 @@ function pfUI.api.GetUnitStats(unitstr, trackStats) -- Get power values based on type if powerType == 1 then - -- Rage (Nampower stores rage * 10) + -- Rage (Nampower stores rage * 10, maxPower2 stores maxRage * 10) local rage = GetUnitField(guid, "power2") + local maxRage = GetUnitField(guid, "maxPower2") power = rage and math.floor(rage / 10) or UnitMana(unitstr) - maxPower = 100 + maxPower = maxRage and math.floor(maxRage / 10) or UnitManaMax(unitstr) elseif powerType == 3 then -- Energy power = GetUnitField(guid, "power4") or UnitMana(unitstr)