DarkRotations
List of commands for rotations - Printable Version

+- DarkRotations (https://darkrotations.com/forums)
+-- Forum: Rotation Developers Arena (https://darkrotations.com/forums/forum-8.html)
+--- Forum: Rotation Dev Discussions (https://darkrotations.com/forums/forum-10.html)
+--- Thread: List of commands for rotations (/thread-25.html)



List of commands for rotations - Rotations - 03-29-2019

Target. Commands

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