mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 08:36:04 +00:00
fixed maxpower not showing properly for warriors
This commit is contained in:
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user