mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
rogue debuff spell
This commit is contained in:
@@ -16,6 +16,7 @@ class DpsRogueStrategyActionNodeFactory : public NamedObjectFactory<ActionNode>
|
||||
creators["kidney shot"] = &kidney_shot;
|
||||
creators["backstab"] = &backstab;
|
||||
creators["melee"] = &melee;
|
||||
creators["rupture"] = &rupture;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -61,6 +62,14 @@ class DpsRogueStrategyActionNodeFactory : public NamedObjectFactory<ActionNode>
|
||||
/*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<TriggerNode*>& 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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user