SHARE
TWEET

Untitled

a guest Aug 16th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. oUF.Tags['tanoh:altpower'] = function(u)
  2.     if( UnitPowerMax(u, ALTERNATE_POWER_INDEX) > 0 ) then
  3.         return string.format("%d/%d",UnitPower(u, ALTERNATE_POWER_INDEX), UnitPowerMax(u, ALTERNATE_POWER_INDEX));
  4.     else
  5.         return "";
  6.     end
  7. end
  8. oUF.TagEvents['tanoh:altpower'] = "UNIT_POWER";
RAW Paste Data
Top