powertype

Returns if the targets power type or the players power type if no target is supplied.

powertype([unit]) : PowerType

Example

if powertype('target') == PowerType.Mana then
return cast(Manasteal, 'target')
end