Target. Commands
target.alive - true / false
target.enemy - true / false
target.has_stealable - true / false
target.distance - numeric (returns the distance in yards)
target.interrupt(%, false) - true / false (the % is what percent it must be under in order to return true)
-target.debuff(SB.Spellname) - true / false (the - represents 'is active' and does not require additional syntax)
target.alive - true / false
Code:
if target.alive then
return cast(SB.MoonFire, 'target')
end
target.enemy - true / false
Code:
if target.enemy then
return cast(SB.Sunflower, 'target')
end
target.has_stealable - true / false
Code:
if target.has_stealable and castable(SB.SpellSteal, 'target') then
return cast(SB.SpellSteal, 'target')
end
Code:
if player.moving and target.distance <= 40 then
return cast(SB.IceLance)
end
Code:
if castable(SB.Counterspell, 'target') and target.interrupt(70, false) then
return cast(SB.Counterspell, 'target')
end
Code:
if not -target.debuff(SB.SunfireDebuff) then
return cast(SB.Sunfire, 'target')
end