aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkrokli <tkrokli@users.noreply.github.com>2016-08-25 09:03:41 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-18 16:20:47 +0100
commitd01dbdc52806626e7c0a03448f80c42e3fa1f4ec (patch)
treee8f7b2c50dd6e94f4b03fe573bb8da2d9ed10827
parent80b6f5462459a1714df1bb042050da8244cc3d51 (diff)
Core/Scripts: move #define to enum in boss_kalecgos.cpp
(cherry picked from commit 8bc00e8952e5ae35b69edb50785d0a19ebf8e91e)
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp
index 8257a05ac72..47cabe19a28 100644
--- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp
+++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp
@@ -79,23 +79,22 @@ enum SWPActions
DO_BANISH = 2
};
-#define GO_FAILED "You are unable to use this currently."
+enum Misc
+{
+ FLY_X = 1679,
+ FLY_Y = 900,
+ FLY_Z = 82,
+ CENTER_X = 1705,
+ CENTER_Y = 930,
+ RADIUS = 30,
+ MAX_PLAYERS_IN_SPECTRAL_REALM = 0 // over this, teleport object won't work, 0 disables check
+};
#define EMOTE_UNABLE_TO_FIND "is unable to find Kalecgos"
-#define FLY_X 1679
-#define FLY_Y 900
-#define FLY_Z 82
-
-#define CENTER_X 1705
-#define CENTER_Y 930
-#define RADIUS 30
-
#define DRAGON_REALM_Z 53.079f
#define DEMON_REALM_Z -74.558f
-#define MAX_PLAYERS_IN_SPECTRAL_REALM 0 //over this, teleport object won't work, 0 disables check
-
uint32 WildMagic[] = { 44978, 45001, 45002, 45004, 45006, 45010 };
class boss_kalecgos : public CreatureScript
@@ -565,7 +564,6 @@ public:
if (player->HasAura(AURA_SPECTRAL_EXHAUSTION) || SpectralPlayers >= MAX_PLAYERS_IN_SPECTRAL_REALM)
{
- player->GetSession()->SendNotification(GO_FAILED);
return true;
}
#else
@@ -763,7 +761,6 @@ public:
}
else
{
- me->TextEmote(EMOTE_UNABLE_TO_FIND);
EnterEvadeMode();
return;
}