From 5bba90a8cb4e82684b4600079cd99c1e695c6e5e Mon Sep 17 00:00:00 2001 From: Flekz Date: Sat, 27 Jan 2024 23:21:41 +0000 Subject: [PATCH] Fix banish on cc action for warlocks --- playerbot/strategy/warlock/WarlockActions.h | 6 ++++++ playerbot/strategy/warlock/WarlockAiObjectContext.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/playerbot/strategy/warlock/WarlockActions.h b/playerbot/strategy/warlock/WarlockActions.h index bd0c2b236..cebdded11 100644 --- a/playerbot/strategy/warlock/WarlockActions.h +++ b/playerbot/strategy/warlock/WarlockActions.h @@ -423,6 +423,12 @@ namespace ai virtual ActionThreatType getThreatType() { return ActionThreatType::ACTION_THREAT_NONE; } }; + class CastBanishOnCcAction : public CastCrowdControlSpellAction + { + public: + CastBanishOnCcAction(PlayerbotAI* ai) : CastCrowdControlSpellAction(ai, "banish") {} + }; + class CastSeedOfCorruptionAction : public CastRangedDebuffSpellAction { public: diff --git a/playerbot/strategy/warlock/WarlockAiObjectContext.cpp b/playerbot/strategy/warlock/WarlockAiObjectContext.cpp index a4c1c93e6..dd8a5d67c 100644 --- a/playerbot/strategy/warlock/WarlockAiObjectContext.cpp +++ b/playerbot/strategy/warlock/WarlockAiObjectContext.cpp @@ -539,7 +539,7 @@ namespace ai static Action* drain_mana(PlayerbotAI* ai) { return new CastDrainManaAction(ai); } static Action* drain_life(PlayerbotAI* ai) { return new CastDrainLifeAction(ai); } static Action* banish(PlayerbotAI* ai) { return new CastBanishAction(ai); } - static Action* banish_on_cc(PlayerbotAI* ai) { return new CastBanishAction(ai); } + static Action* banish_on_cc(PlayerbotAI* ai) { return new CastBanishOnCcAction(ai); } static Action* seed_of_corruption(PlayerbotAI* ai) { return new CastSeedOfCorruptionAction(ai); } static Action* rain_of_fire(PlayerbotAI* ai) { return new CastRainOfFireAction(ai); } static Action* shadowfury(PlayerbotAI* ai) { return new CastShadowfuryAction(ai); }