View Single Post
03-23-16, 04:51 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by icyblade View Post
UnitPowerMax()/UnitPower() should specify power type now
We use this code now:
Lua Code:
  1. local value = UnitPowerMax(unit)
In Legion we should do something like this:
Lua Code:
  1. local value = UnitPowerMax(unit, UnitPowerType(unit))
Not new, this has been in for a few expansions now. Maybe you meant it's not optional any more?