Skip to content

Commit

Permalink
fix alt power
Browse files Browse the repository at this point in the history
  • Loading branch information
scrable committed Oct 15, 2020
1 parent 0bf7160 commit 56c782d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oUF_Farva/Farva_Tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ oUF.Tags.Events['raid:hp'] = 'UNIT_HEALTH UNIT_CONNECTION'
oUF.Tags.Methods['altpower'] = function(u)
local cur = UnitPower(u, ALTERNATE_POWER_INDEX)
local max = UnitPowerMax(u, ALTERNATE_POWER_INDEX)
local name = select(10, UnitAlternatePowerInfo(u))
local name = select(10, UnitPowerBarID(u))
local per = math.floor(cur/max*100+.5)
if name and per > 0 then
return(name..': '..'|cffAF5050'..format('%d%%', per))
Expand Down

0 comments on commit 56c782d

Please sign in to comment.