diff --git a/src/strategy/rogue/DpsRogueStrategy.cpp b/src/strategy/rogue/DpsRogueStrategy.cpp index cf26ec08..ed7f1e06 100644 --- a/src/strategy/rogue/DpsRogueStrategy.cpp +++ b/src/strategy/rogue/DpsRogueStrategy.cpp @@ -16,6 +16,7 @@ class DpsRogueStrategyActionNodeFactory : public NamedObjectFactory creators["kidney shot"] = &kidney_shot; creators["backstab"] = &backstab; creators["melee"] = &melee; + creators["rupture"] = &rupture; } private: @@ -61,6 +62,14 @@ class DpsRogueStrategyActionNodeFactory : public NamedObjectFactory /*A*/ NextAction::array(0, new NextAction("mutilate"), NULL), /*C*/ NULL); } + static ActionNode* rupture(PlayerbotAI* botAI) + { + return new ActionNode ("rupture", + /*P*/ NULL, + /*A*/ NextAction::array(0, new NextAction("eviscerate"), NULL), + /*C*/ NULL); + } + }; DpsRogueStrategy::DpsRogueStrategy(PlayerbotAI* botAI) : MeleeCombatStrategy(botAI) @@ -89,7 +98,8 @@ void DpsRogueStrategy::InitTriggers(std::vector& triggers) triggers.push_back(new TriggerNode( "combo points available", - NextAction::array(0, new NextAction("rupture", ACTION_HIGH + 1), NULL))); + NextAction::array(0, + new NextAction("rupture", ACTION_HIGH + 1), NULL))); triggers.push_back(new TriggerNode( "medium threat", diff --git a/src/strategy/rogue/RogueFinishingActions.h b/src/strategy/rogue/RogueFinishingActions.h index 48178606..f2d9a686 100644 --- a/src/strategy/rogue/RogueFinishingActions.h +++ b/src/strategy/rogue/RogueFinishingActions.h @@ -21,16 +21,16 @@ class CastSliceAndDiceAction : public CastMeleeSpellAction CastSliceAndDiceAction(PlayerbotAI* botAI) : CastMeleeSpellAction(botAI, "slice and dice") { } }; -class CastExposeArmorAction : public CastMeleeSpellAction +class CastExposeArmorAction : public CastDebuffSpellAction { public: - CastExposeArmorAction(PlayerbotAI* botAI) : CastMeleeSpellAction(botAI, "expose armor") { } + CastExposeArmorAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "expose armor", false, 25.0f) { } }; -class CastRuptureAction : public CastMeleeSpellAction +class CastRuptureAction : public CastDebuffSpellAction { public: - CastRuptureAction(PlayerbotAI* botAI) : CastMeleeSpellAction(botAI, "rupture") { } + CastRuptureAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "rupture") { } }; class CastKidneyShotAction : public CastMeleeSpellAction