Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. // ST
  2. Rotation::Status rend1()
  3. {
  4. WoW_Unit* my_target = ROTMGR.current_target;
  5. if (my_target
  6. && ROTMGR.player_has_talent(WoWTalentID::tWarrior_Rend)
  7. && Spells::rend.can_cast(my_target)
  8. && !has_my_aura(my_target, WoWAuraID::aWarrior_Rend))
  9. {
  10. Spells::rend.try_cast(my_target, "rend1");
  11. return break_rotation;
  12. }
  13. return continue_rotation;
  14. }
  15.  
  16. Rotation::Status colossussmash1()
  17. {
  18. WoW_Unit* my_target = ROTMGR.current_target;
  19. if (my_target
  20. && Spells::colossussmash.can_cast(my_target)
  21. && !has_my_aura(Me, WoWAuraID::aWarrior_ShatteredDefenses))
  22. {
  23. Spells::colossussmash.try_cast(my_target, "colossussmash1");
  24. return break_rotation;
  25. }
  26. return continue_rotation;
  27. }
  28.  
  29. Rotation::Status execute1()
  30. {
  31. WoW_Unit* my_target = ROTMGR.current_target;
  32. if (my_target
  33. && Spells::execute.can_cast(my_target)
  34. && has_my_aura(Me, WoWAuraID::aWarrior_Stoneheart))
  35. {
  36. Spells::execute.try_cast(my_target, "execute1");
  37. return break_rotation;
  38. }
  39. return continue_rotation;
  40. }
  41.  
  42. Rotation::Status overpower1()
  43. {
  44. WoW_Unit* my_target = ROTMGR.current_target;
  45. if (my_target
  46. && Spells::overpower.can_cast(my_target)
  47. && ROTMGR.player_has_talent(WoWTalentID::tWarrior_Overpower)
  48. )
  49. {
  50. Spells::overpower.try_cast(my_target, "overpower1");
  51. return break_rotation;
  52. }
  53. return continue_rotation;
  54. }
  55.  
  56. Rotation::Status mortal1()
  57. {
  58. WoW_Unit* my_target = ROTMGR.current_target;
  59. if (my_target
  60. && (my_aura_stacks(my_target, WoWAuraID::aWarrior_EP) == 0
  61. || has_my_aura(Me, WoWAuraID::aWarrior_ShatteredDefenses))
  62. && Spells::mortalstrike.can_cast(my_target)
  63. )
  64. {
  65. Spells::mortalstrike.try_cast(my_target, "mortal1");
  66. return break_rotation;
  67. }
  68. return continue_rotation;
  69. }
  70.  
  71. Rotation::Status rend2()
  72. {
  73. WoW_Unit* my_target = ROTMGR.current_target;
  74. if (my_target
  75. && ROTMGR.player_has_talent(WoWTalentID::tWarrior_Rend)
  76. && Spells::rend.can_cast(my_target)
  77. && has_my_aura(my_target, WoWAuraID::aWarrior_Rend)
  78. && my_aura_time_left(my_target, WoWAuraID::aWarrior_Rend) < 2400
  79. )
  80. {
  81. Spells::rend.try_cast(my_target, "rend2");
  82. return break_rotation;
  83. }
  84. return continue_rotation;
  85. }
  86.  
  87. Rotation::Status slam()
  88. {
  89. WoW_Unit* my_target = ROTMGR.current_target;
  90. if (my_target
  91. && Spells::slam.can_cast(my_target)
  92. && ROTMGR.rage() > 30)
  93. {
  94. Spells::slam.try_cast(my_target, "slam");
  95. return break_rotation;
  96. }
  97. return continue_rotation;
  98. }
  99.  
  100. }
  101.  
  102. namespace Cycles
  103. {
  104. Rotation::ActionSelector ST_cycle{
  105. new Action(&Actions::rend1), //rend if no rend on target
  106. new Action(&Actions::colossussmash1), //cs if no sd
  107. new Action(&Actions::execute1), //execute if ayala
  108. new Action(&Actions::overpower1), // overpower if talented
  109. new Action(&Actions::mortal1), // mortal if sd or no ep
  110. new Action(&Actions::rend2), //rend if <2.4 remaining
  111. new Action(&Actions::slam), //
  112.  
  113. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement