mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-19 11:45:42 +00:00
[Assist Dps] Healer assist dps strats
This commit is contained in:
@@ -87,3 +87,23 @@ void PriestCcStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
triggers.push_back(
|
||||
new TriggerNode("shackle undead", NextAction::array(0, new NextAction("shackle undead", 31.0f), nullptr)));
|
||||
}
|
||||
|
||||
void PriestAssistDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
triggers.push_back(
|
||||
new TriggerNode("healer should attack",
|
||||
NextAction::array(0,
|
||||
new NextAction("shadow word: pain", ACTION_DEFAULT + 0.5f),
|
||||
new NextAction("holy fire", ACTION_DEFAULT + 0.4f),
|
||||
// new NextAction("mind blast", ACTION_DEFAULT + 0.3f),
|
||||
new NextAction("smite", ACTION_DEFAULT + 0.1f),
|
||||
new NextAction("shoot", ACTION_DEFAULT),
|
||||
nullptr)));
|
||||
|
||||
triggers.push_back(
|
||||
new TriggerNode("medium aoe and healer should attack",
|
||||
NextAction::array(0,
|
||||
new NextAction("mind sear", ACTION_DEFAULT + 0.5f),
|
||||
nullptr)));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,4 +46,13 @@ public:
|
||||
std::string const getName() override { return "cc"; }
|
||||
};
|
||||
|
||||
class PriestAssistDpsStrategy : public Strategy
|
||||
{
|
||||
public:
|
||||
PriestAssistDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
|
||||
|
||||
void InitTriggers(std::vector<TriggerNode*>& triggers) override;
|
||||
std::string const getName() override { return "assist dps"; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -68,7 +68,13 @@ CURE_PARTY_ACTION(CastCureDiseaseOnPartyAction, "cure disease", DISPEL_DISEASE);
|
||||
CURE_ACTION(CastAbolishDiseaseAction, "abolish disease");
|
||||
CURE_PARTY_ACTION(CastAbolishDiseaseOnPartyAction, "abolish disease", DISPEL_DISEASE);
|
||||
|
||||
DEBUFF_CHECKISOWNER_ACTION(CastHolyFireAction, "holy fire");
|
||||
// DEBUFF_CHECKISOWNER_ACTION(CastHolyFireAction, "holy fire");
|
||||
class CastHolyFireAction : public CastDebuffSpellAction
|
||||
{
|
||||
public:
|
||||
CastHolyFireAction(PlayerbotAI* botAI) : CastDebuffSpellAction(botAI, "holy fire", true, 0.0f) {}
|
||||
};
|
||||
|
||||
// shadow 2.4.3
|
||||
// BUFF_ACTION(CastShadowfiendAction, "shadowfiend");
|
||||
SPELL_ACTION(CastShadowWordDeathAction, "shadow word: death");
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "PriestAiObjectContext.h"
|
||||
|
||||
#include "GenericPriestStrategy.h"
|
||||
#include "HolyPriestStrategy.h"
|
||||
#include "NamedObjectContext.h"
|
||||
#include "Playerbots.h"
|
||||
@@ -30,6 +31,7 @@ public:
|
||||
creators["boost"] = &PriestStrategyFactoryInternal::boost;
|
||||
creators["rshadow"] = &PriestStrategyFactoryInternal::rshadow;
|
||||
creators["cc"] = &PriestStrategyFactoryInternal::cc;
|
||||
creators["assist dps"] = &PriestStrategyFactoryInternal::assist_dps;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -42,6 +44,7 @@ private:
|
||||
static Strategy* pull(PlayerbotAI* botAI) { return new PullStrategy(botAI, "shoot"); }
|
||||
static Strategy* shadow_debuff(PlayerbotAI* botAI) { return new ShadowPriestDebuffStrategy(botAI); }
|
||||
static Strategy* cure(PlayerbotAI* botAI) { return new PriestCureStrategy(botAI); }
|
||||
static Strategy* assist_dps(PlayerbotAI* botAI) { return new PriestAssistDpsStrategy(botAI); }
|
||||
};
|
||||
|
||||
class PriestCombatStrategyFactoryInternal : public NamedObjectContext<Strategy>
|
||||
|
||||
@@ -55,7 +55,7 @@ void PriestNonCombatStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
NextAction::array(0, new NextAction("renew on party", ACTION_LIGHT_HEAL + 3), NULL)));
|
||||
|
||||
triggers.push_back(
|
||||
new TriggerNode("medium aoe heal", NextAction::array(0, new NextAction("circle of healing", 27.0f), NULL)));
|
||||
new TriggerNode("group heal occasion", NextAction::array(0, new NextAction("circle of healing", 27.0f), NULL)));
|
||||
}
|
||||
|
||||
void PriestBuffStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
|
||||
Reference in New Issue
Block a user