Skip to content

Commit

Permalink
fixed wrong value in power:max tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Loaal committed Apr 8, 2017
1 parent 0a9e851 commit 8e4c997
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ElvUI/modules/unitframes/tags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ end

ElvUF.Tags.Events["power:max"] = "UNIT_MAXENERGY UNIT_MAXFOCUS UNIT_MAXMANA UNIT_MAXRAGE UNIT_MAXRUNIC_POWER"
ElvUF.Tags.Methods["power:max"] = function(unit)
local max = UnitPowerMax(unit, UnitPowerType(unit))
local pType = UnitPowerType(unit)
local max = UnitPowerMax(unit, pType)

return E:GetFormattedText("CURRENT", max, max)
end
Expand Down

0 comments on commit 8e4c997

Please sign in to comment.