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)