Spell casting

This commit is contained in:
Yunfan Li
2024-03-12 18:39:23 +08:00
parent 00e48c7548
commit aab51a8182
16 changed files with 50 additions and 13 deletions

View File

@@ -43,6 +43,7 @@ class GenericPaladinStrategyActionNodeFactory : public NamedObjectFactory<Action
creators["taunt spell"] = &hand_of_reckoning;
creators["righteous defense"] = &righteous_defense;
creators["avenger's shield"] = &avengers_shield;
creators["melee consecration"] = &melee_consecration;
}
private:
static ActionNode* blessing_of_sanctuary(PlayerbotAI* ai)
@@ -217,7 +218,7 @@ class GenericPaladinStrategyActionNodeFactory : public NamedObjectFactory<Action
{
return new ActionNode ("holy wrath",
/*P*/ nullptr,
/*A*/ NextAction::array(0, new NextAction("consecration"), NULL),
/*A*/ nullptr,
/*C*/ nullptr);
}
static ActionNode* hammer_of_wrath(PlayerbotAI* ai)
@@ -234,6 +235,13 @@ class GenericPaladinStrategyActionNodeFactory : public NamedObjectFactory<Action
/*A*/ NextAction::array(0, new NextAction("seal of righteousness"), NULL),
/*C*/ nullptr);
}
static ActionNode* melee_consecration([[maybe_unused]] PlayerbotAI* botAI)
{
return new ActionNode ("melee consecration",
/*P*/ NextAction::array(0, new NextAction("reach melee"), nullptr),
/*A*/ nullptr,
/*C*/ nullptr);
}
};
#endif