• Home
  • Donate
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
DarkRotations Rotation Developers Arena Rotation Dev Discussions List of commands for rotations

 
  • 0 Vote(s) - 0 Average
List of commands for rotations
Rotations
Offline

Administrator

Posts: 25
Threads: 15
Joined: Nov 2018
Reputation: 0
#1
03-29-2019, 04:31 PM (This post was last modified: 03-29-2019, 06:23 PM by Rotations.)
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© DarkRotations

Linear Mode
Threaded Mode