mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
- [Paladin] added crusader aura support (#867)
This commit is contained in:
@@ -48,6 +48,7 @@ public:
|
||||
creators["baoe"] = &PaladinResistanceStrategyFactoryInternal::baoe;
|
||||
creators["barmor"] = &PaladinResistanceStrategyFactoryInternal::barmor;
|
||||
creators["bcast"] = &PaladinResistanceStrategyFactoryInternal::bcast;
|
||||
creators["bspeed"] = &PaladinResistanceStrategyFactoryInternal::bspeed;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -57,6 +58,7 @@ private:
|
||||
static Strategy* baoe(PlayerbotAI* botAI) { return new PaladinBuffAoeStrategy(botAI); }
|
||||
static Strategy* barmor(PlayerbotAI* botAI) { return new PaladinBuffArmorStrategy(botAI); }
|
||||
static Strategy* bcast(PlayerbotAI* botAI) { return new PaladinBuffCastStrategy(botAI); }
|
||||
static Strategy* bspeed(PlayerbotAI* botAI) { return new PaladinBuffSpeedStrategy(botAI); }
|
||||
};
|
||||
|
||||
class PaladinBuffStrategyFactoryInternal : public NamedObjectContext<Strategy>
|
||||
|
||||
@@ -72,6 +72,12 @@ void PaladinBuffCastStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
"concentration aura", NextAction::array(0, new NextAction("concentration aura", ACTION_NORMAL), nullptr)));
|
||||
}
|
||||
|
||||
void PaladinBuffSpeedStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
triggers.push_back(new TriggerNode(
|
||||
"crusader aura", NextAction::array(0, new NextAction("crusader aura", ACTION_NORMAL), nullptr)));
|
||||
}
|
||||
|
||||
void PaladinBuffThreatStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
triggers.push_back(new TriggerNode(
|
||||
|
||||
@@ -64,6 +64,15 @@ public:
|
||||
std::string const getName() override { return "bcast"; }
|
||||
};
|
||||
|
||||
class PaladinBuffSpeedStrategy : public Strategy
|
||||
{
|
||||
public:
|
||||
PaladinBuffSpeedStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
||||
|
||||
void InitTriggers(std::vector<TriggerNode*>& triggers) override;
|
||||
std::string const getName() override { return "bspeed"; }
|
||||
};
|
||||
|
||||
class PaladinBuffThreatStrategy : public Strategy
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user