Utgarde Keep strat cleanup

This commit is contained in:
Bobblybook
2024-10-05 19:04:05 +10:00
parent d0f5bb7cc7
commit 23ff699724
5 changed files with 9 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
#include "UtgardeKeepActions.h" #include "UtgardeKeepActions.h"
#include "UtgardeKeepStrategy.h" #include "UtgardeKeepStrategy.h"
bool AttackFrostTombAction::isUseful() { return !botAI->IsHeal(bot); }
bool AttackFrostTombAction::Execute(Event event) bool AttackFrostTombAction::Execute(Event event)
{ {
Unit* frostTomb = nullptr; Unit* frostTomb = nullptr;

View File

@@ -12,6 +12,7 @@ class AttackFrostTombAction : public AttackAction
public: public:
AttackFrostTombAction(PlayerbotAI* ai) : AttackAction(ai, "attack frost tomb") {} AttackFrostTombAction(PlayerbotAI* ai) : AttackAction(ai, "attack frost tomb") {}
bool Execute(Event event) override; bool Execute(Event event) override;
bool isUseful() override;
}; };
class AttackDalronnAction : public AttackAction class AttackDalronnAction : public AttackAction
@@ -32,16 +33,16 @@ class IngvarDodgeSmashAction : public MovementAction
{ {
public: public:
IngvarDodgeSmashAction(PlayerbotAI* ai) : MovementAction(ai, "ingvar dodge smash") {} IngvarDodgeSmashAction(PlayerbotAI* ai) : MovementAction(ai, "ingvar dodge smash") {}
bool isUseful() override;
bool Execute(Event event) override; bool Execute(Event event) override;
bool isUseful() override;
}; };
class IngvarSmashReturnAction : public MovementAction class IngvarSmashReturnAction : public MovementAction
{ {
public: public:
IngvarSmashReturnAction(PlayerbotAI* ai) : MovementAction(ai, "ingvar smash return") {} IngvarSmashReturnAction(PlayerbotAI* ai) : MovementAction(ai, "ingvar smash return") {}
bool isUseful() override;
bool Execute(Event event) override; bool Execute(Event event) override;
bool isUseful() override;
}; };
#endif #endif

View File

@@ -1,5 +1,5 @@
#ifndef _PLAYERRBOT_WOTLKDUNGEONUKMULTIPLIERS_H #ifndef _PLAYERBOT_WOTLKDUNGEONUKMULTIPLIERS_H
#define _PLAYERRBOT_WOTLKDUNGEONUKMULTIPLIERS_H #define _PLAYERBOT_WOTLKDUNGEONUKMULTIPLIERS_H
#include "Multiplier.h" #include "Multiplier.h"

View File

@@ -1,5 +1,5 @@
#ifndef _PLAYERBOT_WOTLKDUNGEONUKSTRATEGY_H_ #ifndef _PLAYERBOT_WOTLKDUNGEONUKSTRATEGY_H
#define _PLAYERBOT_WOTLKDUNGEONUKSTRATEGY_H_ #define _PLAYERBOT_WOTLKDUNGEONUKSTRATEGY_H
#include "Multiplier.h" #include "Multiplier.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

View File

@@ -1,15 +1,12 @@
#ifndef _PLAYERBOT_WOTLKDUNGEONUKTRIGGERS_H #ifndef _PLAYERBOT_WOTLKDUNGEONUKTRIGGERS_H
#define _PLAYERBOT_WOTLKDUNGEONUKTRIGGERS_H #define _PLAYERBOT_WOTLKDUNGEONUKTRIGGERS_H
#include "EventMap.h"
#include "Trigger.h" #include "Trigger.h"
#include "PlayerbotAIConfig.h" #include "PlayerbotAIConfig.h"
#include "GenericTriggers.h" #include "GenericTriggers.h"
#include "DungeonStrategyUtils.h" #include "DungeonStrategyUtils.h"
// Taken from: enum UtgardeKeepIDs
// src/server/scripts/Northrend/UtgardeKeep/UtgardeKeep/boss_ingvar_the_plunderer.cpp
enum Spells
{ {
SPELL_SUMMON_VALKYR = 42912, SPELL_SUMMON_VALKYR = 42912,
SPELL_RESURRECTION_BEAM = 42857, SPELL_RESURRECTION_BEAM = 42857,
@@ -32,7 +29,6 @@ enum Spells
SPELL_DARK_SMASH = 42723, SPELL_DARK_SMASH = 42723,
SPELL_SHADOW_AXE = 42749, SPELL_SHADOW_AXE = 42749,
// Added
DEBUFF_FROST_TOMB = 48400, DEBUFF_FROST_TOMB = 48400,
}; };