Skip to content

Commit

Permalink
Fix banish on cc action for warlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Jan 27, 2024
1 parent 7bbf0e1 commit 5bba90a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions playerbot/strategy/warlock/WarlockActions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion playerbot/strategy/warlock/WarlockAiObjectContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit 5bba90a

Please sign in to comment.