health

Returns the percentage of health remaining for a given target. Defaults to player if no target is provided.

health([target]) : int

Example

if health('target') <= 50 then
return cast(FlashHeal, 'player)
end