Trigger fixes and Warrior AI tweaks

This commit is contained in:
郑佩茹
2023-03-21 12:25:25 -06:00
parent f27ab459b1
commit aeeb37da78
11 changed files with 94 additions and 10 deletions

View File

@@ -143,6 +143,13 @@ class clazz : public SpellCanBeCastTrigger \
bool IsActive() override; \
}
#define CD_TRIGGER(clazz, spell) \
class clazz : public SpellNoCooldownTrigger \
{ \
public: \
clazz(PlayerbotAI* botAI) : SpellNoCooldownTrigger(botAI, spell) {} \
}
#define INTERRUPT_TRIGGER(clazz, spell) \
class clazz : public InterruptSpellTrigger \
{ \
@@ -491,7 +498,7 @@ static ActionNode* name(PlayerbotAI* botAI) \
return new ActionNode(spell, \
/*P*/ nullptr, \
/*A*/ nullptr, \
/*C*/ NextAction::array(0, new NextAction(con), nullptr); \
/*C*/ NextAction::array(0, new NextAction(con), nullptr)); \
}
#endif