lowest

Returns the lowest party unit that can be affected by a given spell.

lowest(unita, unitb) : boolean

Example

local healTarget = lowest(FlashHeal)
if health(healTarget) <= 50 then
return cast(FlashHeal, HealTarget)
end