Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ST
- Rotation::Status rend1()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && ROTMGR.player_has_talent(WoWTalentID::tWarrior_Rend)
- && Spells::rend.can_cast(my_target)
- && !has_my_aura(my_target, WoWAuraID::aWarrior_Rend))
- {
- Spells::rend.try_cast(my_target, "rend1");
- return break_rotation;
- }
- return continue_rotation;
- }
- Rotation::Status colossussmash1()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && Spells::colossussmash.can_cast(my_target)
- && !has_my_aura(Me, WoWAuraID::aWarrior_ShatteredDefenses))
- {
- Spells::colossussmash.try_cast(my_target, "colossussmash1");
- return break_rotation;
- }
- return continue_rotation;
- }
- Rotation::Status execute1()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && Spells::execute.can_cast(my_target)
- && has_my_aura(Me, WoWAuraID::aWarrior_Stoneheart))
- {
- Spells::execute.try_cast(my_target, "execute1");
- return break_rotation;
- }
- return continue_rotation;
- }
- Rotation::Status overpower1()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && Spells::overpower.can_cast(my_target)
- && ROTMGR.player_has_talent(WoWTalentID::tWarrior_Overpower)
- )
- {
- Spells::overpower.try_cast(my_target, "overpower1");
- return break_rotation;
- }
- return continue_rotation;
- }
- Rotation::Status mortal1()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && (my_aura_stacks(my_target, WoWAuraID::aWarrior_EP) == 0
- || has_my_aura(Me, WoWAuraID::aWarrior_ShatteredDefenses))
- && Spells::mortalstrike.can_cast(my_target)
- )
- {
- Spells::mortalstrike.try_cast(my_target, "mortal1");
- return break_rotation;
- }
- return continue_rotation;
- }
- Rotation::Status rend2()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && ROTMGR.player_has_talent(WoWTalentID::tWarrior_Rend)
- && Spells::rend.can_cast(my_target)
- && has_my_aura(my_target, WoWAuraID::aWarrior_Rend)
- && my_aura_time_left(my_target, WoWAuraID::aWarrior_Rend) < 2400
- )
- {
- Spells::rend.try_cast(my_target, "rend2");
- return break_rotation;
- }
- return continue_rotation;
- }
- Rotation::Status slam()
- {
- WoW_Unit* my_target = ROTMGR.current_target;
- if (my_target
- && Spells::slam.can_cast(my_target)
- && ROTMGR.rage() > 30)
- {
- Spells::slam.try_cast(my_target, "slam");
- return break_rotation;
- }
- return continue_rotation;
- }
- }
- namespace Cycles
- {
- Rotation::ActionSelector ST_cycle{
- new Action(&Actions::rend1), //rend if no rend on target
- new Action(&Actions::colossussmash1), //cs if no sd
- new Action(&Actions::execute1), //execute if ayala
- new Action(&Actions::overpower1), // overpower if talented
- new Action(&Actions::mortal1), // mortal if sd or no ep
- new Action(&Actions::rend2), //rend if <2.4 remaining
- new Action(&Actions::slam), //
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement