Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created December 14, 2014 03:53
Show Gist options
  • Save nefftd/936ad00adbce01adc32c to your computer and use it in GitHub Desktop.
Save nefftd/936ad00adbce01adc32c to your computer and use it in GitHub Desktop.
-- 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