powermax

Returns the maximum power for power type on unit

powermax([type, target]) : number

Example

local maxfury = powermax()
local curfury = power()
 
if maxfury - curfury > 50 then
return print('We have a large deficit, generate fury')
end