diff options
author | tkrokli <tkrokli@users.noreply.github.com> | 2016-08-25 09:03:41 +0200 |
---|---|---|
committer | Aokromes <Aokromes@users.noreply.github.com> | 2016-08-25 09:03:41 +0200 |
commit | 8bc00e8952e5ae35b69edb50785d0a19ebf8e91e (patch) | |
tree | 983b5bf9ed7eb27f8c1318a8d82d6d86b84cc1a4 | |
parent | 69bec9a02232c02fab676eae22305042c0aa9432 (diff) |
Core/Scripts: move #define to enum in boss_kalecgos.cpp
-rw-r--r-- | src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp | 23 |
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 8707c7eca27..daaaab41036 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 @@ -562,7 +561,6 @@ public: if (player->HasAura(AURA_SPECTRAL_EXHAUSTION) || SpectralPlayers >= MAX_PLAYERS_IN_SPECTRAL_REALM) { - player->GetSession()->SendNotification(GO_FAILED); return true; } #else @@ -760,7 +758,6 @@ public: } else { - me->TextEmote(EMOTE_UNABLE_TO_FIND); EnterEvadeMode(); return; } |