Created
December 14, 2014 03:53
-
-
Save nefftd/936ad00adbce01adc32c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Holy Power | |
local holypower_colors = {'ffffff','fff880','f5e92f','53ff4a','53ff4a'} | |
oUF.Tags.Methods["lumen:holypower"] = function(unit) | |
local hp = UnitPower('player', SPELL_POWER_HOLY_POWER) or 0 | |
if hp > 0 then | |
return ('|cff%s%d|r'):format((holypower_colors[hp] or 'ffffff'),hp) | |
end | |
end | |
oUF.Tags.Events["lumen:holypower"] = "UNIT_POWER" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment