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 "UtgardeKeepStrategy.h"
bool AttackFrostTombAction::isUseful() { return !botAI->IsHeal(bot); }
bool AttackFrostTombAction::Execute(Event event)
{
Unit* frostTomb = nullptr;

View File

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

View File

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

View File

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

View File

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