powerpercent

Returns if the percentage of power remaining for a unit of given power type. Defaults to the players power if there's no target or power given. If a target is supplied it defaults to the targets.

powerpercent([type, target]) : powerpercent

Example

if powerpercent('target') <= 50 then
return cast(ArcaneTorrent, 'player)
end