frost presence for blood dk

This commit is contained in:
Yunfan Li
2023-07-14 15:21:40 +08:00
parent 403da69e9d
commit 5956875cae
3 changed files with 8 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ class BloodDKStrategyActionNodeFactory : public NamedObjectFactory<ActionNode>
//creators["death grip"] = &death_grip; //creators["death grip"] = &death_grip;
//creators["plague strike"] = &plague_strike; //creators["plague strike"] = &plague_strike;
//creators["pestilence"] = &pestilence; //creators["pestilence"] = &pestilence;
//creators["icy touch"] = &icy_touch; creators["icy touch"] = &icy_touch;
//creators["obliterate"] = &obliterate; //creators["obliterate"] = &obliterate;
//creators["blood boil"] = &blood_boil; //creators["blood boil"] = &blood_boil;
//creators["mark of_blood"] = &mark_of_blood; //creators["mark of_blood"] = &mark_of_blood;
@@ -41,7 +41,13 @@ class BloodDKStrategyActionNodeFactory : public NamedObjectFactory<ActionNode>
/*A*/ nullptr, /*A*/ nullptr,
/*C*/ nullptr); /*C*/ nullptr);
} }
static ActionNode* icy_touch([[maybe_unused]] PlayerbotAI* botAI)
{
return new ActionNode("icy touch",
/*P*/ NextAction::array(0, new NextAction("frost presence"), nullptr),
/*A*/ nullptr,
/*C*/ nullptr);
}
static ActionNode* heart_strike([[maybe_unused]] PlayerbotAI* botAI) static ActionNode* heart_strike([[maybe_unused]] PlayerbotAI* botAI)
{ {
return new ActionNode ("heart strike", return new ActionNode ("heart strike",

View File

@@ -14,11 +14,6 @@ NextAction** CastDeathchillAction::getPrerequisites()
return NextAction::merge(NextAction::array(0, new NextAction("frost presence"), nullptr), CastSpellAction::getPrerequisites()); return NextAction::merge(NextAction::array(0, new NextAction("frost presence"), nullptr), CastSpellAction::getPrerequisites());
} }
NextAction** CastDarkCommandAction::getPrerequisites()
{
return NextAction::merge(NextAction::array(0, new NextAction("blood presence"), nullptr), CastSpellAction::getPrerequisites());
}
NextAction** CastUnholyMeleeSpellAction::getPrerequisites() NextAction** CastUnholyMeleeSpellAction::getPrerequisites()
{ {
return NextAction::merge(NextAction::array(0, new NextAction("unholy presence"), nullptr), CastMeleeSpellAction::getPrerequisites()); return NextAction::merge(NextAction::array(0, new NextAction("unholy presence"), nullptr), CastMeleeSpellAction::getPrerequisites());

View File

@@ -40,8 +40,6 @@ class CastDarkCommandAction : public CastSpellAction
{ {
public: public:
CastDarkCommandAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "dark command") { } CastDarkCommandAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "dark command") { }
NextAction** getPrerequisites() override;
}; };
BEGIN_RANGED_SPELL_ACTION(CastDeathGripAction, "death grip") BEGIN_RANGED_SPELL_ACTION(CastDeathGripAction, "death grip")