shadow priest shoot

This commit is contained in:
Yunfan Li
2023-10-20 22:41:44 +08:00
parent 29b748803e
commit f303a9e83a
2 changed files with 9 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ NextAction** ShadowPriestStrategy::getDefaultActions()
new NextAction("mind blast", 13.0f),
// new NextAction("shadow word: death", 12.0f),
new NextAction("mind flay", 11.0f),
new NextAction("shoot", 10.0f),
// new NextAction("shoot", 10.0f),
NULL);
}

View File

@@ -17,6 +17,7 @@ class ShadowPriestStrategyActionNodeFactory : public NamedObjectFactory<ActionNo
{
creators["mind blast"] = &mind_blast;
creators["dispersion"] = &dispersion;
creators["mind flay"] = &mind_flay;
}
private:
@@ -28,6 +29,13 @@ class ShadowPriestStrategyActionNodeFactory : public NamedObjectFactory<ActionNo
/*C*/ nullptr);
}
static ActionNode* mind_flay(PlayerbotAI* botAI)
{
return new ActionNode ("mind flay",
/*P*/ nullptr,
/*A*/ NextAction::array(0, new NextAction("shoot"), nullptr),
/*C*/ nullptr);
}
static ActionNode* dispersion(PlayerbotAI* botAI)
{
return new ActionNode ("dispersion",