diff options
| author | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
| commit | b16d2245bbd374805d15cdca585e8b42bf139605 (patch) | |
| tree | b7b63c567112e1999a2566611363cf5e83adb1be /src/server/scripts/EasternKingdoms | |
| parent | 8b820baa7324d41df264f48e344d62584bff70f8 (diff) | |
Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
56 files changed, 184 insertions, 184 deletions
diff --git a/src/server/scripts/EasternKingdoms/AlteracValley/alterac_valley.cpp b/src/server/scripts/EasternKingdoms/AlteracValley/alterac_valley.cpp index dea747b97b8..e3295a6c45e 100644 --- a/src/server/scripts/EasternKingdoms/AlteracValley/alterac_valley.cpp +++ b/src/server/scripts/EasternKingdoms/AlteracValley/alterac_valley.cpp @@ -92,7 +92,7 @@ class mob_av_marshal_or_warmaster : public CreatureScript { if (!bHasAura) { - switch(me->GetEntry()) + switch (me->GetEntry()) { case NPC_NORTH_MARSHAL: DoCast(me, SPELL_NORTH_MARSHAL); diff --git a/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp b/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp index 30bf51bdbb8..39ddbc2f6fc 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockDepths/blackrock_depths.cpp @@ -211,7 +211,7 @@ public: void WaypointReached(uint32 i) { - switch(i) + switch (i) { case 0: DoScriptText(SCRIPT_TEXT1, me);//2 @@ -297,7 +297,7 @@ public: { if (Event_Timer <= diff) { - switch(EventPhase) + switch (EventPhase) { case 0: DoScriptText(SCRIPT_TEXT5, me);//1 @@ -662,7 +662,7 @@ public: void WaypointReached(uint32 i) { - switch(i) + switch (i) { case 0:me->Say(SAY_DUGHAL_FREE, LANG_UNIVERSAL, PlayerGUID); break; case 1:pInstance->SetData(DATA_DUGHAL, ENCOUNTER_STATE_OBJECTIVE_COMPLETED);break; @@ -785,7 +785,7 @@ public: void WaypointReached(uint32 i) { - switch(i) + switch (i) { case 1: me->Say(SAY_WINDSOR_1, LANG_UNIVERSAL, PlayerGUID); @@ -822,7 +822,7 @@ public: me->SetVisibility(VISIBILITY_OFF); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - me->SummonCreature(MOB_ENTRY_REGINALD_WINDSOR, 403.61f, -51.71f, -63.92f, 3.600434f, TEMPSUMMON_DEAD_DESPAWN , 0); + me->SummonCreature(MOB_ENTRY_REGINALD_WINDSOR, 403.61f, -51.71f, -63.92f, 3.600434f, TEMPSUMMON_DEAD_DESPAWN, 0); pInstance->SetData(DATA_SUPPLY_ROOM, ENCOUNTER_STATE_ENDED); break; } @@ -959,7 +959,7 @@ public: void WaypointReached(uint32 i) { wp=i; - switch(i) + switch (i) { case 0: me->setFaction(11); @@ -1166,7 +1166,7 @@ public: void WaypointReached(uint32 i) { - switch(i) + switch (i) { case 0:me->Say(SAY_TOBIAS_FREE, LANG_UNIVERSAL, PlayerGUID); break; case 2: @@ -1293,7 +1293,7 @@ public: if (!pInstance) return; - switch(i) + switch (i) { case 1: me->HandleEmoteCommand(EMOTE_ONESHOT_KICK); diff --git a/src/server/scripts/EasternKingdoms/BlackrockDepths/instance_blackrock_depths.cpp b/src/server/scripts/EasternKingdoms/BlackrockDepths/instance_blackrock_depths.cpp index f6fa3ca18d9..94181105be4 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockDepths/instance_blackrock_depths.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockDepths/instance_blackrock_depths.cpp @@ -162,7 +162,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case NPC_EMPEROR: EmperorGUID = creature->GetGUID(); break; case NPC_PHALANX: PhalanxGUID = creature->GetGUID(); break; @@ -184,7 +184,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_ARENA1: GoArena1GUID = go->GetGUID(); break; case GO_ARENA2: GoArena2GUID = go->GetGUID(); break; @@ -220,7 +220,7 @@ public: { sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Instance Blackrock Depths: SetData64 update (Type: %u Data " UI64FMTD ")", type, data); - switch(type) + switch (type) { case DATA_EVENSTARTER: TombEventStarterGUID = data; @@ -236,7 +236,7 @@ public: { sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data); - switch(type) + switch (type) { case TYPE_RING_OF_LAW: m_auiEncounter[0] = data; @@ -281,7 +281,7 @@ public: uint32 GetData(uint32 type) { - switch(type) + switch (type) { case TYPE_RING_OF_LAW: return m_auiEncounter[0]; @@ -306,7 +306,7 @@ public: uint64 GetData64(uint32 data) { - switch(data) + switch (data) { case DATA_EMPEROR: return EmperorGUID; diff --git a/src/server/scripts/EasternKingdoms/BlackrockSpire/blackrock_spire.h b/src/server/scripts/EasternKingdoms/BlackrockSpire/blackrock_spire.h index 72f4fb707c8..b330e80a294 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockSpire/blackrock_spire.h +++ b/src/server/scripts/EasternKingdoms/BlackrockSpire/blackrock_spire.h @@ -27,7 +27,7 @@ enum Data DATA_UROK_DOOMHOWL, // not scripted DATA_QUARTERMASTER_ZIGRIS, DATA_GIZRUL_THE_SLAVENER, // not scripted - DATA_HALYCON , + DATA_HALYCON, DATA_OVERLORD_WYRMTHALAK, DATA_PYROGAURD_EMBERSEER, DATA_WARCHIEF_REND_BLACKHAND, diff --git a/src/server/scripts/EasternKingdoms/BlackrockSpire/instance_blackrock_spire.cpp b/src/server/scripts/EasternKingdoms/BlackrockSpire/instance_blackrock_spire.cpp index 415f3796d52..d65c1c68090 100644 --- a/src/server/scripts/EasternKingdoms/BlackrockSpire/instance_blackrock_spire.cpp +++ b/src/server/scripts/EasternKingdoms/BlackrockSpire/instance_blackrock_spire.cpp @@ -81,7 +81,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case NPC_OMOKK: HighlordOmokk = creature->GetGUID(); @@ -130,7 +130,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_WHELP_SPAWNER: go->CastSpell(NULL, SPELL_SUMMON_ROOKERY_WHELP); @@ -169,7 +169,7 @@ public: uint64 GetData64(uint32 type) { - switch(type) + switch (type) { case DATA_OMOKK: return HighlordOmokk; diff --git a/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp b/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp index 53985ce9e58..7903bee11a7 100644 --- a/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp +++ b/src/server/scripts/EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp @@ -98,7 +98,7 @@ public: bool OnGossipHello(Player* player, Creature* creature) { - player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_1 , GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); + player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1); player->SEND_GOSSIP_MENU(7134, creature->GetGUID()); return true; } diff --git a/src/server/scripts/EasternKingdoms/Deadmines/boss_mr_smite.cpp b/src/server/scripts/EasternKingdoms/Deadmines/boss_mr_smite.cpp index cbb4917de2e..929e201d71c 100644 --- a/src/server/scripts/EasternKingdoms/Deadmines/boss_mr_smite.cpp +++ b/src/server/scripts/EasternKingdoms/Deadmines/boss_mr_smite.cpp @@ -138,7 +138,7 @@ public: { if (uiTimer <= uiDiff) { - switch(uiPhase) + switch (uiPhase) { case 1: me->HandleEmoteCommand(EMOTE_STATE_KNEEL); //dosen't work? diff --git a/src/server/scripts/EasternKingdoms/Deadmines/instance_deadmines.cpp b/src/server/scripts/EasternKingdoms/Deadmines/instance_deadmines.cpp index 370bcfe13b9..2d626a64895 100644 --- a/src/server/scripts/EasternKingdoms/Deadmines/instance_deadmines.cpp +++ b/src/server/scripts/EasternKingdoms/Deadmines/instance_deadmines.cpp @@ -186,7 +186,7 @@ class instance_deadmines : public InstanceMapScript void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_FACTORY_DOOR: FactoryDoorGUID = go->GetGUID(); break; case GO_IRONCLAD_DOOR: IronCladDoorGUID = go->GetGUID(); break; diff --git a/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp b/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp index f18fc5ee243..364dd8532db 100644 --- a/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp +++ b/src/server/scripts/EasternKingdoms/Gnomeregan/gnomeregan.cpp @@ -273,7 +273,7 @@ public: if (me->getFaction() != GetPlayerForEscort()->getFaction()) me->setFaction(GetPlayerForEscort()->getFaction()); - switch(uiPoint) + switch (uiPoint) { case 3: SetEscortPaused(true); @@ -312,7 +312,7 @@ public: void SetData(uint32 uiI, uint32 uiValue) { - switch(uiI) + switch (uiI) { case 1: SetEscortPaused(true); @@ -323,7 +323,7 @@ public: if (!pInstance) return; - switch(uiValue) + switch (uiValue) { case 1: pInstance->SetData(TYPE_EVENT, IN_PROGRESS); @@ -339,7 +339,7 @@ public: void Summon(uint8 uiCase) { - switch(uiCase) + switch (uiCase) { case 1: me->SummonCreature(NPC_CAVERNDEEP_AMBUSHER, SpawnPosition[0], TEMPSUMMON_CORPSE_TIMED_DESPAWN, 1800000); @@ -417,7 +417,7 @@ public: { if (uiTimer <= uiDiff) { - switch(uiPhase) + switch (uiPhase) { case 1: DoScriptText(SAY_BLASTMASTER_1, me); diff --git a/src/server/scripts/EasternKingdoms/Gnomeregan/instance_gnomeregan.cpp b/src/server/scripts/EasternKingdoms/Gnomeregan/instance_gnomeregan.cpp index 8b42c7135e5..d0642d3a24d 100644 --- a/src/server/scripts/EasternKingdoms/Gnomeregan/instance_gnomeregan.cpp +++ b/src/server/scripts/EasternKingdoms/Gnomeregan/instance_gnomeregan.cpp @@ -77,7 +77,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case NPC_BLASTMASTER_EMI_SHORTFUSE: uiBastmasterEmiShortfuseGUID = creature->GetGUID(); break; } @@ -85,7 +85,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_CAVE_IN_LEFT: uiCaveInLeftGUID = go->GetGUID(); @@ -102,7 +102,7 @@ public: void SetData(uint32 uiType, uint32 uiData) { - switch(uiType) + switch (uiType) { case TYPE_EVENT: m_auiEncounter[0] = uiData; @@ -114,7 +114,7 @@ public: uint32 GetData(uint32 uiType) { - switch(uiType) + switch (uiType) { case TYPE_EVENT: return m_auiEncounter[0]; } @@ -123,7 +123,7 @@ public: uint64 GetData64(uint32 uiType) { - switch(uiType) + switch (uiType) { case DATA_GO_CAVE_IN_LEFT: return uiCaveInLeftGUID; case DATA_GO_CAVE_IN_RIGHT: return uiCaveInRightGUID; diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp index 92c2d417cda..596dfa9c25f 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_midnight.cpp @@ -43,7 +43,7 @@ EndScriptData */ #define MOUNTED_DISPLAYID 16040 -//Attumen (TODO: Use the summoning spell instead of Creature id. It works , but is not convenient for us) +//Attumen (TODO: Use the summoning spell instead of Creature id. It works, but is not convenient for us) #define SUMMON_ATTUMEN 15550 class boss_attumen : public CreatureScript diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp index d25d3518b9e..40d984d70a3 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_prince_malchezaar.cpp @@ -108,7 +108,7 @@ public: struct netherspite_infernalAI : public ScriptedAI { - netherspite_infernalAI(Creature* c) : ScriptedAI(c) , + netherspite_infernalAI(Creature* c) : ScriptedAI(c), HellfireTimer(0), CleanupTimer(0), malchezaar(0), point(NULL) {} uint32 HellfireTimer; diff --git a/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp b/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp index 05ad283a428..15c697198d0 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/instance_karazhan.cpp @@ -183,7 +183,7 @@ public: void SetData64(uint32 identifier, uint64 data) { - switch(identifier) + switch (identifier) { case DATA_IMAGE_OF_MEDIVH: ImageGUID = data; } @@ -191,7 +191,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case 183932: m_uiCurtainGUID = go->GetGUID(); break; case 184278: @@ -221,7 +221,7 @@ public: case 185119: DustCoveredChest = go->GetGUID(); break; } - switch(m_uiOperaEvent) + switch (m_uiOperaEvent) { //TODO: Set Object visibilities for Opera based on performance case EVENT_OZ: diff --git a/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp b/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp index e22bdb1e9ef..b8025c1adee 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/karazhan.cpp @@ -163,7 +163,7 @@ public: if (!pInstance) return; - switch(i) + switch (i) { case 0: DoCast(me, SPELL_TUXEDO, false); @@ -197,7 +197,7 @@ public: { int32 text = 0; - switch(m_uiEventId) + switch (m_uiEventId) { case EVENT_OZ: if (OzDialogue[count].textid) @@ -231,7 +231,7 @@ public: uint8 index = 0; uint8 count = 0; - switch(m_uiEventId) + switch (m_uiEventId) { case EVENT_OZ: index = 0; @@ -329,7 +329,7 @@ public: player->PlayerTalkClass->ClearMenus(); npc_barnesAI* pBarnesAI = CAST_AI(npc_barnes::npc_barnesAI, creature->AI()); - switch(uiAction) + switch (uiAction) { case GOSSIP_ACTION_INFO_DEF+1: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, OZ_GOSSIP2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2); @@ -538,7 +538,7 @@ public: { Unit* arca = Unit::GetUnit((*me), ArcanagosGUID); Map* pMap = me->GetMap(); - switch(Step) + switch (Step) { case 0: return 9999999; case 1: diff --git a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_felblood_kaelthas.cpp b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_felblood_kaelthas.cpp index 9f758edbba7..b3f06bdf2c7 100644 --- a/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_felblood_kaelthas.cpp +++ b/src/server/scripts/EasternKingdoms/MagistersTerrace/boss_felblood_kaelthas.cpp @@ -276,7 +276,7 @@ public: if (!UpdateVictim()) return; - switch(Phase) + switch (Phase) { case 0: { @@ -353,7 +353,7 @@ public: { if (GravityLapseTimer <= diff) { - switch(GravityLapsePhase) + switch (GravityLapsePhase) { case 0: if (FirstGravityLapse) // Different yells at 50%, and at every following Gravity Lapse diff --git a/src/server/scripts/EasternKingdoms/MagistersTerrace/instance_magisters_terrace.cpp b/src/server/scripts/EasternKingdoms/MagistersTerrace/instance_magisters_terrace.cpp index 6e1574fe1c2..dd8031626bb 100644 --- a/src/server/scripts/EasternKingdoms/MagistersTerrace/instance_magisters_terrace.cpp +++ b/src/server/scripts/EasternKingdoms/MagistersTerrace/instance_magisters_terrace.cpp @@ -97,7 +97,7 @@ public: uint32 GetData(uint32 identifier) { - switch(identifier) + switch (identifier) { case DATA_SELIN_EVENT: return m_auiEncounter[0]; case DATA_VEXALLUS_EVENT: return m_auiEncounter[1]; @@ -111,7 +111,7 @@ public: void SetData(uint32 identifier, uint32 data) { - switch(identifier) + switch (identifier) { case DATA_SELIN_EVENT: m_auiEncounter[0] = data; break; case DATA_VEXALLUS_EVENT: @@ -139,7 +139,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case 24723: SelinGUID = creature->GetGUID(); break; case 24560: DelrissaGUID = creature->GetGUID(); break; @@ -149,7 +149,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case 187896: VexallusDoorGUID = go->GetGUID(); break; //SunwellRaid Gate 02 @@ -165,7 +165,7 @@ public: uint64 GetData64(uint32 identifier) { - switch(identifier) + switch (identifier) { case DATA_SELIN: return SelinGUID; case DATA_DELRISSA: return DelrissaGUID; diff --git a/src/server/scripts/EasternKingdoms/MagistersTerrace/magisters_terrace.cpp b/src/server/scripts/EasternKingdoms/MagistersTerrace/magisters_terrace.cpp index d39f8e455ff..3e95c613f23 100644 --- a/src/server/scripts/EasternKingdoms/MagistersTerrace/magisters_terrace.cpp +++ b/src/server/scripts/EasternKingdoms/MagistersTerrace/magisters_terrace.cpp @@ -59,7 +59,7 @@ public: bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) { player->PlayerTalkClass->ClearMenus(); - switch(uiAction) + switch (uiAction) { case GOSSIP_ACTION_INFO_DEF: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_KAEL_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp index d2982900be1..e255cc52871 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -173,7 +173,7 @@ public: void UpdateAI(const uint32 diff) { - switch(phase) + switch (phase) { case PHASE_CHAINED: if (!anchorGUID) @@ -247,7 +247,7 @@ public: while (uint32 eventId = events.ExecuteEvent()) { - switch(eventId) + switch (eventId) { case EVENT_ICY_TOUCH: DoCast(me->getVictim(), SPELL_ICY_TOUCH); @@ -553,7 +553,7 @@ public: if (PhaseTimer <= diff) { - switch(Phase) + switch (Phase) { case 0: me->MonsterSay(SAY_DARK_RIDER, LANG_UNIVERSAL, 0); diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp index 532ede1d3c6..481c8647c82 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter2.cpp @@ -109,7 +109,7 @@ public: return; } - switch(uiSpeech_counter) + switch (uiSpeech_counter) { case 1: DoScriptText(SAY_PERSUADED1, me); uiSpeech_timer = 8000; break; case 2: DoScriptText(SAY_PERSUADED2, me); uiSpeech_timer = 8000; break; @@ -220,7 +220,7 @@ public: void WaypointReached(uint32 uiPointId) { - switch(uiPointId) + switch (uiPointId) { case 0: DoScriptText(SAY_BREAKOUT1, me); @@ -281,7 +281,7 @@ public: { if (m_uiWave_Timer <= uiDiff) { - switch(m_uiWave) + switch (m_uiWave) { case 0: DoScriptText(SAY_BREAKOUT3, me); @@ -397,7 +397,7 @@ public: { if (uiStage_timer <= diff) { - switch(uiStage) + switch (uiStage) { case 1: me->AddUnitMovementFlag(MOVEMENTFLAG_WALKING); @@ -610,7 +610,7 @@ public: bool MeetQuestCondition(Unit* player) { - switch(me->GetEntry()) + switch (me->GetEntry()) { case 29061: // Ellen Stanbridge if (CAST_PLR(player)->GetQuestStatus(12742) == QUEST_STATUS_INCOMPLETE) @@ -682,10 +682,10 @@ public: //TODO: simplify text's selection - switch(player->getRace()) + switch (player->getRace()) { case RACE_HUMAN: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -713,7 +713,7 @@ public: } break; case RACE_ORC: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -741,7 +741,7 @@ public: } break; case RACE_DWARF: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_2, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -769,7 +769,7 @@ public: } break; case RACE_NIGHTELF: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -797,7 +797,7 @@ public: } break; case RACE_UNDEAD_PLAYER: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -825,7 +825,7 @@ public: } break; case RACE_TAUREN: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -853,7 +853,7 @@ public: } break; case RACE_GNOME: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -881,7 +881,7 @@ public: } break; case RACE_TROLL: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_3, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -909,7 +909,7 @@ public: } break; case RACE_BLOODELF: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; @@ -937,7 +937,7 @@ public: } break; case RACE_DRAENEI: - switch(ExecuteSpeech_Counter) + switch (ExecuteSpeech_Counter) { case 0: DoScriptText(SAY_EXEC_START_1, me, player); break; case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break; diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp index 2f7fde7ec60..2dc4553c3fa 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter5.cpp @@ -23,7 +23,7 @@ enum mograine { #ifdef LESS_MOB - ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or - + ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest, or - ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data ENCOUNTER_DEFENDER_NUMBER = 10, // how many of defender ENCOUNTER_EARTHSHATTER_NUMBER = 1, // how many of earthshatter @@ -32,7 +32,7 @@ enum mograine ENCOUNTER_GHOUL_NUMBER = 5, // how many of ghoul ENCOUNTER_WARRIOR_NUMBER = 1, // how many of warrior #else - ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or - + ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest, or - ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data ENCOUNTER_DEFENDER_NUMBER = 20, // how many of defender ENCOUNTER_EARTHSHATTER_NUMBER = 20, // how many of earthshatter diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp index a948ffa53cd..e6610294071 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/the_scarlet_enclave.cpp @@ -69,7 +69,7 @@ public: if (!player) phase = 3; - switch(phase) + switch (phase) { case 0: me->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING); diff --git a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp index 80cbcedda7c..f321e75caac 100644 --- a/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp @@ -153,7 +153,7 @@ public: void EnterCombat(Unit* /*who*/){} void SetType(uint32 _type) { - switch(Creaturetype = _type) + switch (Creaturetype = _type) { case 1: spell = SPELL_PUMPKIN_AURA_GREEN; @@ -257,7 +257,7 @@ public: if (withbody) return; - switch(Phase) + switch (Phase) { case 1: if (me->HealthBelowPctDamaged(67, damage)) @@ -608,7 +608,7 @@ public: { if (withhead) { - switch(Phase) + switch (Phase) { case 0: { diff --git a/src/server/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp b/src/server/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp index f9856673f5c..256525379cd 100644 --- a/src/server/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletMonastery/instance_scarlet_monastery.cpp @@ -76,7 +76,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case ENTRY_PUMPKIN_SHRINE: PumpkinShrineGUID = go->GetGUID();break; case 104600: DoorHighInquisitorGUID = go->GetGUID(); break; @@ -85,7 +85,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case ENTRY_HORSEMAN: HorsemanGUID = creature->GetGUID(); break; case ENTRY_HEAD: HeadGUID = creature->GetGUID(); break; @@ -98,7 +98,7 @@ public: void SetData(uint32 type, uint32 data) { - switch(type) + switch (type) { case TYPE_MOGRAINE_AND_WHITE_EVENT: if (data == IN_PROGRESS) @@ -130,7 +130,7 @@ public: uint64 GetData64(uint32 type) { - switch(type) + switch (type) { //case GAMEOBJECT_PUMPKIN_SHRINE: return PumpkinShrineGUID; //case DATA_HORSEMAN: return HorsemanGUID; diff --git a/src/server/scripts/EasternKingdoms/Scholomance/boss_darkmaster_gandling.cpp b/src/server/scripts/EasternKingdoms/Scholomance/boss_darkmaster_gandling.cpp index 52d8b2b926d..4e935280a6e 100644 --- a/src/server/scripts/EasternKingdoms/Scholomance/boss_darkmaster_gandling.cpp +++ b/src/server/scripts/EasternKingdoms/Scholomance/boss_darkmaster_gandling.cpp @@ -132,7 +132,7 @@ public: DoModifyThreatPercent(target, -100); Creature* Summoned = NULL; - switch(rand()%6) + switch (rand()%6) { case 0: DoTeleportPlayer(target, 250.0696f, 0.3921f, 84.8408f, 3.149f); diff --git a/src/server/scripts/EasternKingdoms/Scholomance/instance_scholomance.cpp b/src/server/scripts/EasternKingdoms/Scholomance/instance_scholomance.cpp index 8945728e45d..ccbe8336097 100644 --- a/src/server/scripts/EasternKingdoms/Scholomance/instance_scholomance.cpp +++ b/src/server/scripts/EasternKingdoms/Scholomance/instance_scholomance.cpp @@ -83,7 +83,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_GATE_KIRTONOS: GateKirtonosGUID = go->GetGUID(); break; case GO_GATE_GANDLING: GateGandlingGUID = go->GetGUID(); break; @@ -98,7 +98,7 @@ public: void SetData(uint32 type, uint32 data) { - switch(type) + switch (type) { case DATA_LORDALEXEIBAROV_DEATH: IsBossDied[0] = true; diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp index b08a73c320b..5de6143e5a4 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp @@ -100,7 +100,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case NPC_ASH: uiAshGUID = creature->GetGUID(); break; case NPC_ADA: uiAdaGUID = creature->GetGUID(); break; @@ -110,7 +110,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_COURTYARD_DOOR: DoorCourtyardGUID = go->GetGUID(); @@ -144,7 +144,7 @@ public: void SetData(uint32 type, uint32 data) { - switch(type) + switch (type) { case TYPE_FREE_NPC: if (data == DONE) @@ -157,7 +157,7 @@ public: m_auiEncounter[1] = data; break; case TYPE_FENRUS: - switch(data) + switch (data) { case DONE: uiTimer = 1000; @@ -192,7 +192,7 @@ public: uint32 GetData(uint32 type) { - switch(type) + switch (type) { case TYPE_FREE_NPC: return m_auiEncounter[0]; @@ -248,7 +248,7 @@ public: { if (uiTimer <= uiDiff) { - switch(uiPhase) + switch (uiPhase) { case 1: summon = pArchmage->SummonCreature(pArchmage->GetEntry(), SpawnLocation[4], TEMPSUMMON_TIMED_DESPAWN, 10000); diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp index 25ff8c9d9ec..e034fa098f4 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.cpp @@ -101,7 +101,7 @@ public: void WaypointReached(uint32 uiPoint) { - switch(uiPoint) + switch (uiPoint) { case 0: if (uiNpcEntry == NPC_ASH) diff --git a/src/server/scripts/EasternKingdoms/Stratholme/boss_order_of_silver_hand.cpp b/src/server/scripts/EasternKingdoms/Stratholme/boss_order_of_silver_hand.cpp index af71960763d..980e8e41a6a 100644 --- a/src/server/scripts/EasternKingdoms/Stratholme/boss_order_of_silver_hand.cpp +++ b/src/server/scripts/EasternKingdoms/Stratholme/boss_order_of_silver_hand.cpp @@ -71,7 +71,7 @@ public: if (pInstance) { - switch(me->GetEntry()) + switch (me->GetEntry()) { case SH_AELMAR: pInstance->SetData(TYPE_SH_AELMAR, 0); @@ -100,7 +100,7 @@ public: { if (pInstance) { - switch(me->GetEntry()) + switch (me->GetEntry()) { case SH_AELMAR: pInstance->SetData(TYPE_SH_AELMAR, 2); diff --git a/src/server/scripts/EasternKingdoms/Stratholme/stratholme.cpp b/src/server/scripts/EasternKingdoms/Stratholme/stratholme.cpp index 82c83948c27..71b5a42a6b2 100644 --- a/src/server/scripts/EasternKingdoms/Stratholme/stratholme.cpp +++ b/src/server/scripts/EasternKingdoms/Stratholme/stratholme.cpp @@ -260,7 +260,7 @@ public: void ReceiveEmote(Player* player, uint32 emote) { - switch(emote) + switch (emote) { case TEXT_EMOTE_DANCE: EnterEvadeMode(); diff --git a/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp b/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp index 08ac34c938c..7c807859cbe 100644 --- a/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp +++ b/src/server/scripts/EasternKingdoms/SunkenTemple/instance_sunken_temple.cpp @@ -94,7 +94,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case GO_ATALAI_STATUE1: GOAtalaiStatue1 = go->GetGUID(); break; case GO_ATALAI_STATUE2: GOAtalaiStatue2 = go->GetGUID(); break; @@ -108,7 +108,7 @@ public: virtual void Update(uint32 /*diff*/) // correct order goes form 1-6 { - switch(State) + switch (State) { case GO_ATALAI_STATUE1: if (!s1 && !s2 && !s3 && !s4 && !s5 && !s6) diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp index 644c0eacde5..4ca0846b04c 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp @@ -183,7 +183,7 @@ public: void SpellHitTarget(Unit* target, const SpellInfo* spell) { - switch(spell->Id) + switch (spell->Id) { case SPELL_SHADOW_BLADES: case SPELL_SHADOW_NOVA: @@ -199,7 +199,7 @@ public: void HandleTouchedSpells(Unit* target, uint32 TouchedType) { - switch(TouchedType) + switch (TouchedType) { case SPELL_FLAME_TOUCHED: if (!target->HasAura(SPELL_DARK_FLAME)) @@ -477,7 +477,7 @@ public: void SpellHitTarget(Unit* target, const SpellInfo* spell) { - switch(spell->Id) + switch (spell->Id) { case SPELL_BLAZE: @@ -494,7 +494,7 @@ public: void HandleTouchedSpells(Unit* target, uint32 TouchedType) { - switch(TouchedType) + switch (TouchedType) { case SPELL_FLAME_TOUCHED: if (!target->HasAura(SPELL_DARK_FLAME)) @@ -702,7 +702,7 @@ public: void SpellHitTarget(Unit* target, const SpellInfo* spell) { - switch(spell->Id) + switch (spell->Id) { case SPELL_SHADOW_FURY: diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp index 584ce3856a4..b79ec3a542d 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp @@ -239,7 +239,7 @@ public: void EnterPhase(PhaseFelmyst NextPhase) { - switch(NextPhase) + switch (NextPhase) { case PHASE_GROUND: me->CastStop(SPELL_FOG_BREATH); @@ -267,7 +267,7 @@ public: void HandleFlightSequence() { - switch(uiFlightCount) + switch (uiFlightCount) { case 0: //me->AttackStop(); @@ -416,7 +416,7 @@ public: if (phase == PHASE_GROUND) { - switch(events.ExecuteEvent()) + switch (events.ExecuteEvent()) { case EVENT_BERSERK: DoScriptText(YELL_BERSERK, me); @@ -451,7 +451,7 @@ public: if (phase == PHASE_FLIGHT) { - switch(events.ExecuteEvent()) + switch (events.ExecuteEvent()) { case EVENT_BERSERK: DoScriptText(YELL_BERSERK, me); diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp index 39aa4f6f6f3..8f15878f888 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp @@ -389,7 +389,7 @@ public: void GoodEnding() { - switch(TalkSequence) + switch (TalkSequence) { case 1: me->setFaction(35); @@ -411,7 +411,7 @@ public: void BadEnding() { - switch(TalkSequence) + switch (TalkSequence) { case 1: DoScriptText(SAY_EVIL_ENRAGE, me); @@ -491,7 +491,7 @@ public: if (YellTimer <= diff) { - switch(YellSequence) + switch (YellSequence) { case 0: DoScriptText(SAY_GOOD_AGGRO, me); diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp index 674f3ab19ca..47704b42d5a 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp @@ -278,7 +278,7 @@ public: if (!pInstance) return NULL; - switch(index) + switch (index) { case 0: return pInstance->instance->GetGameObject(pInstance->GetData64(DATA_ORB_OF_THE_BLUE_DRAGONFLIGHT_1)); @@ -334,7 +334,7 @@ public: OrbsEmpowered = (OrbsEmpowered+1)%4; ++EmpowerCount; - switch(EmpowerCount) + switch (EmpowerCount) { case 1: DoScriptText(SAY_KALEC_ORB_READY1, me); break; case 2: DoScriptText(SAY_KALEC_ORB_READY2, me); break; @@ -445,7 +445,7 @@ public: void JustSummoned(Creature* summoned) { - switch(summoned->GetEntry()) + switch (summoned->GetEntry()) { case CREATURE_HAND_OF_THE_DECEIVER: summoned->CastSpell(summoned, SPELL_SHADOW_CHANNELING, false); @@ -697,13 +697,13 @@ public: { if (Timer[t] < diff && !TimerIsDeactivated[t]) { - switch(t) + switch (t) { case TIMER_SPEECH: if (SpeechBegins) { SpeechBegins=false; - switch(Phase) + switch (Phase) { case PHASE_NORMAL: speechPhaseEnd=1; @@ -1139,7 +1139,7 @@ public: { if (uiTimer <= diff) { - switch(spell) + switch (spell) { case 0: DoCast(me, SPELL_ARMAGEDDON_VISUAL, true); @@ -1314,7 +1314,7 @@ public: } } - switch(victimClass) { + switch (victimClass) { case CLASS_DRUID: if (uiTimer[1] <= diff) { diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp index c713c053222..50a5c83c370 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp @@ -85,8 +85,8 @@ float DarkFiends[8][4] = {1801.98f, 633.62f, 69.74f, 5.71f}, {1830.88f, 629.99f, 69.73f, 3.52f}, {1800.38f, 621.41f, 69.74f, 0.22f}, - {1808.3f , 612.45f, 69.73f, 1.02f}, - {1823.9f , 639.69f, 69.74f, 4.12f}, + {1808.3f, 612.45f, 69.73f, 1.02f}, + {1823.9f, 639.69f, 69.74f, 4.12f}, {1811.85f, 640.46f, 69.73f, 4.97f} }; @@ -95,7 +95,7 @@ float Humanoides[6][5] = {CREATURE_FURY_MAGE, 1780.16f, 666.83f, 71.19f, 5.21f}, {CREATURE_FURY_MAGE, 1847.93f, 600.30f, 71.30f, 2.57f}, {CREATURE_BERSERKER, 1779.97f, 660.64f, 71.19f, 5.28f}, - {CREATURE_BERSERKER, 1786.2f , 661.01f, 71.19f, 4.51f}, + {CREATURE_BERSERKER, 1786.2f, 661.01f, 71.19f, 4.51f}, {CREATURE_BERSERKER, 1845.17f, 602.63f, 71.28f, 2.43f}, {CREATURE_BERSERKER, 1842.91f, 599.93f, 71.23f, 2.44f} }; @@ -145,7 +145,7 @@ public: void JustSummoned(Creature* summoned) { - switch(summoned->GetEntry()) + switch (summoned->GetEntry()) { case CREATURE_DARK_FIENDS: summoned->CastSpell(summoned, SPELL_DARKFIEND_VISUAL, false); @@ -270,7 +270,7 @@ public: void JustSummoned(Creature* summoned) { - switch(summoned->GetEntry()) + switch (summoned->GetEntry()) { case BOSS_ENTROPIUS: me->SetVisible(false); @@ -294,7 +294,7 @@ public: { if (!pInstance) return; - switch(pInstance->GetData(DATA_MURU_EVENT)) + switch (pInstance->GetData(DATA_MURU_EVENT)) { case NOT_STARTED: Reset(); @@ -318,7 +318,7 @@ public: { if (Timer[i] <= diff) { - switch(i) + switch (i) { case TIMER_DARKNESS: if (!DarkFiend) @@ -419,7 +419,7 @@ public: me->GetHomePosition(x, y, z, o); DoTeleportTo(x, y, z); InAction = true; - switch(Spell->Id) + switch (Spell->Id) { case SPELL_OPEN_ALL_PORTALS: DoCastAOE(SPELL_OPEN_PORTAL, false); diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp index fb412b018f2..10ffb3703e0 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp @@ -140,7 +140,7 @@ public: void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case 24850: Kalecgos_Dragon = creature->GetGUID(); break; case 24891: Kalecgos_Human = creature->GetGUID(); break; @@ -160,7 +160,7 @@ public: void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case 188421: ForceField = go->GetGUID(); break; case 188523: KalecgosWall[0] = go->GetGUID(); break; @@ -181,7 +181,7 @@ public: uint32 GetData(uint32 id) { - switch(id) + switch (id) { case DATA_KALECGOS_EVENT: return m_auiEncounter[0]; case DATA_BRUTALLUS_EVENT: return m_auiEncounter[1]; @@ -195,7 +195,7 @@ public: uint64 GetData64(uint32 id) { - switch(id) + switch (id) { case DATA_KALECGOS_DRAGON: return Kalecgos_Dragon; case DATA_KALECGOS_HUMAN: return Kalecgos_Human; @@ -220,7 +220,7 @@ public: void SetData(uint32 id, uint32 data) { - switch(id) + switch (id) { case DATA_KALECGOS_EVENT: { @@ -246,7 +246,7 @@ public: m_auiEncounter[2] = data; break; case DATA_EREDAR_TWINS_EVENT: m_auiEncounter[3] = data; break; case DATA_MURU_EVENT: - switch(data) + switch (data) { case DONE: HandleGameObject(MurusGate[0], true); diff --git a/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp b/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp index ea1a260b3af..094caaa1ec8 100644 --- a/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp +++ b/src/server/scripts/EasternKingdoms/Uldaman/instance_uldaman.cpp @@ -105,14 +105,14 @@ class instance_uldaman : public InstanceMapScript case GO_ALTAR_OF_THE_KEEPER_TEMPLE_DOOR: // lock the door uiAltarOfTheKeeperTempleDoor = go->GetGUID(); - if(m_auiEncounter[0] == DONE) + if (m_auiEncounter[0] == DONE) HandleGameObject(0, true, go); break; case GO_ARCHAEDAS_TEMPLE_DOOR: uiArchaedasTempleDoor = go->GetGUID(); - if(m_auiEncounter[0] == DONE) + if (m_auiEncounter[0] == DONE) HandleGameObject(0, true, go); break; @@ -121,7 +121,7 @@ class instance_uldaman : public InstanceMapScript go->SetUInt32Value(GAMEOBJECT_FLAGS, 33); uiAncientVaultDoor = go->GetGUID(); - if(m_auiEncounter[1] == DONE) + if (m_auiEncounter[1] == DONE) HandleGameObject(0, true, go); break; @@ -165,7 +165,7 @@ class instance_uldaman : public InstanceMapScript void BlockGO(uint64 guid) { GameObject* go = instance->GetGameObject(guid); - if(!go) + if (!go) return; go->SetUInt32Value(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND); @@ -255,7 +255,7 @@ class instance_uldaman : public InstanceMapScript void ActivateIronaya() { Creature* ironaya = instance->GetCreature(uiIronayaGUID); - if(!ironaya) + if (!ironaya) return; ironaya->setFaction(415); @@ -306,7 +306,7 @@ class instance_uldaman : public InstanceMapScript if (!bKeystoneCheck) return; - if(uiIronayaSealDoorTimer <= diff) + if (uiIronayaSealDoorTimer <= diff) { ActivateIronaya(); @@ -322,17 +322,17 @@ class instance_uldaman : public InstanceMapScript void SetData (uint32 type, uint32 data) { - switch(type) + switch (type) { case DATA_ALTAR_DOORS: m_auiEncounter[0] = data; - if(data == DONE) + if (data == DONE) SetDoor(uiAltarOfTheKeeperTempleDoor, true); break; case DATA_ANCIENT_DOOR: m_auiEncounter[1] = data; - if(data == DONE) //archeadas defeat + if (data == DONE) //archeadas defeat { SetDoor(uiArchaedasTempleDoor, true); //re open enter door SetDoor(uiAncientVaultDoor, true); @@ -348,7 +348,7 @@ class instance_uldaman : public InstanceMapScript break; case DATA_MINIONS: - switch(data) + switch (data) { case NOT_STARTED: if (m_auiEncounter[0] == DONE) //if players opened the doors @@ -446,7 +446,7 @@ class instance_uldaman : public InstanceMapScript case 7228: // Ironaya uiIronayaGUID = creature->GetGUID(); - if(m_auiEncounter[2] != DONE) + if (m_auiEncounter[2] != DONE) SetFrozenState (creature); break; diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp index 9933529e59a..9ccf957120d 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp @@ -155,7 +155,7 @@ class boss_halazzi : public CreatureScript void EnterPhase(PhaseHalazzi NextPhase) { - switch(NextPhase) + switch (NextPhase) { case PHASE_LYNX: case PHASE_ENRAGE: diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp index f19652f912d..213b37190ac 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp @@ -439,7 +439,7 @@ class boss_hexlord_malacrass : public CreatureScript { uint8 random = urand(0, 2); Unit* target = NULL; - switch(PlayerAbility[PlayerClass][random].target) + switch (PlayerAbility[PlayerClass][random].target) { case ABILITY_TARGET_SELF: target = me; diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp index ff4fe3f8a06..21e895e26bf 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp @@ -206,7 +206,7 @@ class boss_nalorakk : public CreatureScript { if (!inMove) { - switch(MovePhase) + switch (MovePhase) { case 0: if (me->IsWithinDistInMap(who, 50)) @@ -314,7 +314,7 @@ class boss_nalorakk : public CreatureScript if (MovePhase != id) return; - switch(MovePhase) + switch (MovePhase) { case 2: me->SetOrientation(3.1415f*2); diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp index 83feaad071e..f5acbc8d976 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp @@ -340,7 +340,7 @@ class boss_zuljin : public CreatureScript void EnterPhase(uint32 NextPhase) { - switch(NextPhase) + switch (NextPhase) { case 0: break; diff --git a/src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp b/src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp index 35d103f2bb7..806536b7a59 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp @@ -116,7 +116,7 @@ class instance_zulaman : public InstanceMapScript void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case 23578://janalai case 23863://zuljin @@ -129,7 +129,7 @@ class instance_zulaman : public InstanceMapScript void OnGameObjectCreate(GameObject* go) { - switch(go->GetEntry()) + switch (go->GetEntry()) { case 186303: HalazziDoorGUID = go->GetGUID(); break; case 186304: ZulJinGateGUID = go->GetGUID(); break; @@ -205,7 +205,7 @@ class instance_zulaman : public InstanceMapScript void SetData(uint32 type, uint32 data) { - switch(type) + switch (type) { case DATA_NALORAKKEVENT: m_auiEncounter[0] = data; @@ -279,7 +279,7 @@ class instance_zulaman : public InstanceMapScript uint32 GetData(uint32 type) { - switch(type) + switch (type) { case DATA_NALORAKKEVENT: return m_auiEncounter[0]; case DATA_AKILZONEVENT: return m_auiEncounter[1]; diff --git a/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp b/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp index 12811742f26..10055b1fa01 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp @@ -65,7 +65,7 @@ class npc_forest_frog : public CreatureScript if (pInstance) { uint32 cEntry = 0; - switch(rand()%10) + switch (rand()%10) { case 0: cEntry = 24397; break; //Mannuth case 1: cEntry = 24403; break; //Deez diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp index fddaf459d18..b0bbc0c6c79 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp @@ -178,22 +178,22 @@ class boss_venoxis : public CreatureScript while (uint32 eventId = events.ExecuteEvent()) { - switch(eventId) + switch (eventId) { // thrash is available in all phases case EVENT_THRASH: DoCast(me, SPELL_THRASH, true); - events.ScheduleEvent(EVENT_THRASH, urand(10000,20000)); + events.ScheduleEvent(EVENT_THRASH, urand(10000, 20000)); break; // troll form spells and actions (first part) case EVENT_DISPEL_MAGIC: DoCast(me, SPELL_DISPEL_MAGIC); - events.ScheduleEvent(EVENT_DISPEL_MAGIC, urand(15000,20000), 0, PHASE_ONE); + events.ScheduleEvent(EVENT_DISPEL_MAGIC, urand(15000, 20000), 0, PHASE_ONE); break; case EVENT_RENEW: DoCast(me, SPELL_RENEW); - events.ScheduleEvent(EVENT_RENEW, urand(25000,30000), 0, PHASE_ONE); + events.ScheduleEvent(EVENT_RENEW, urand(25000, 30000), 0, PHASE_ONE); break; case EVENT_HOLY_NOVA: _inMeleeRange = 0; @@ -210,17 +210,17 @@ class boss_venoxis : public CreatureScript if (_inMeleeRange >= 3) DoCast(me->getVictim(), SPELL_HOLY_NOVA); - events.ScheduleEvent(EVENT_HOLY_NOVA, urand(45000,75000), 0, PHASE_ONE); + events.ScheduleEvent(EVENT_HOLY_NOVA, urand(45000, 75000), 0, PHASE_ONE); break; case EVENT_HOLY_FIRE: if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) DoCast(target, SPELL_HOLY_FIRE); - events.ScheduleEvent(EVENT_HOLY_FIRE, urand(45000,60000), 0, PHASE_ONE); + events.ScheduleEvent(EVENT_HOLY_FIRE, urand(45000, 60000), 0, PHASE_ONE); break; case EVENT_HOLY_WRATH: if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) DoCast(target, SPELL_HOLY_WRATH); - events.ScheduleEvent(EVENT_HOLY_WRATH, urand(45000,60000), 0, PHASE_ONE); + events.ScheduleEvent(EVENT_HOLY_WRATH, urand(45000, 60000), 0, PHASE_ONE); break; // @@ -230,12 +230,12 @@ class boss_venoxis : public CreatureScript case EVENT_VENOM_SPIT: if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) DoCast(target, SPELL_VENOM_SPIT); - events.ScheduleEvent(EVENT_VENOM_SPIT, urand(5000,15000), 0, PHASE_TWO); + events.ScheduleEvent(EVENT_VENOM_SPIT, urand(5000, 15000), 0, PHASE_TWO); break; case EVENT_POISON_CLOUD: if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) DoCast(target, SPELL_POISON_CLOUD); - events.ScheduleEvent(EVENT_POISON_CLOUD, urand(15000,20000), 0, PHASE_TWO); + events.ScheduleEvent(EVENT_POISON_CLOUD, urand(15000, 20000), 0, PHASE_TWO); break; case EVENT_PARASITIC_SERPENT: if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM)) diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp index 0da63d38f83..a977699f342 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp @@ -65,7 +65,7 @@ class instance_zulgurub : public InstanceMapScript void OnCreatureCreate(Creature* creature) { - switch(creature->GetEntry()) + switch (creature->GetEntry()) { case 11347: m_uiLorKhanGUID = creature->GetGUID(); break; case 11348: m_uiZathGUID = creature->GetGUID(); break; @@ -76,7 +76,7 @@ class instance_zulgurub : public InstanceMapScript void SetData(uint32 uiType, uint32 uiData) { - switch(uiType) + switch (uiType) { case DATA_ARLOKK: m_auiEncounter[0] = uiData; @@ -114,7 +114,7 @@ class instance_zulgurub : public InstanceMapScript uint32 GetData(uint32 uiType) { - switch(uiType) + switch (uiType) { case DATA_ARLOKK: return m_auiEncounter[0]; @@ -138,7 +138,7 @@ class instance_zulgurub : public InstanceMapScript uint64 GetData64(uint32 uiData) { - switch(uiData) + switch (uiData) { case DATA_LORKHAN: return m_uiLorKhanGUID; diff --git a/src/server/scripts/EasternKingdoms/arathi_highlands.cpp b/src/server/scripts/EasternKingdoms/arathi_highlands.cpp index c5d47b60dfd..0ce940723cb 100644 --- a/src/server/scripts/EasternKingdoms/arathi_highlands.cpp +++ b/src/server/scripts/EasternKingdoms/arathi_highlands.cpp @@ -71,7 +71,7 @@ class npc_professor_phizzlethorpe : public CreatureScript if (!player) return; - switch(uiPointId) + switch (uiPointId) { case 4:DoScriptText(SAY_PROGRESS_2, me, player);break; case 5:DoScriptText(SAY_PROGRESS_3, me, player);break; diff --git a/src/server/scripts/EasternKingdoms/eversong_woods.cpp b/src/server/scripts/EasternKingdoms/eversong_woods.cpp index 6960fed819e..10b7066068b 100644 --- a/src/server/scripts/EasternKingdoms/eversong_woods.cpp +++ b/src/server/scripts/EasternKingdoms/eversong_woods.cpp @@ -56,7 +56,7 @@ public: bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) { player->PlayerTalkClass->ClearMenus(); - switch(uiAction) + switch (uiAction) { case GOSSIP_ACTION_INFO_DEF+1: player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_SELECT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2); @@ -222,7 +222,7 @@ public: spellJudLight = false; spellCommand = false; - switch(me->GetEntry()) + switch (me->GetEntry()) { case CHAMPION_BLOODWRATH: spellFlashLight = true; @@ -417,7 +417,7 @@ public: { CAST_AI(npc_second_trial_paladin::npc_secondTrialAI, paladinSpawn->AI())->Activate(me->GetGUID()); - switch(paladinPhase) + switch (paladinPhase) { case 0: DoScriptText(TEXT_SECOND_TRIAL_1, me); diff --git a/src/server/scripts/EasternKingdoms/ghostlands.cpp b/src/server/scripts/EasternKingdoms/ghostlands.cpp index 9efe8301e10..655ad4514fe 100644 --- a/src/server/scripts/EasternKingdoms/ghostlands.cpp +++ b/src/server/scripts/EasternKingdoms/ghostlands.cpp @@ -178,7 +178,7 @@ public: if (!player) return; - switch(i) + switch (i) { case 0: { diff --git a/src/server/scripts/EasternKingdoms/hinterlands.cpp b/src/server/scripts/EasternKingdoms/hinterlands.cpp index df8b909976d..38fcf63b090 100644 --- a/src/server/scripts/EasternKingdoms/hinterlands.cpp +++ b/src/server/scripts/EasternKingdoms/hinterlands.cpp @@ -89,7 +89,7 @@ public: void WaypointReached(uint32 uiPointId) { - switch(uiPointId) + switch (uiPointId) { case 26: DoScriptText(SAY_OOX_AMBUSH, me); @@ -107,7 +107,7 @@ public: void WaypointStart(uint32 uiPointId) { - switch(uiPointId) + switch (uiPointId) { case 27: for (uint8 i = 0; i < 3; ++i) @@ -284,7 +284,7 @@ public: if (!player) return; - switch(uiPointId) + switch (uiPointId) { case 1: DoScriptText(SAY_RIN_FREE, me, player); @@ -317,7 +317,7 @@ public: if (Unit* player = GetPlayerForEscort()) { - switch(m_uiPostEventCount) + switch (m_uiPostEventCount) { case 1: DoScriptText(SAY_RIN_PROGRESS_1, me, player); diff --git a/src/server/scripts/EasternKingdoms/redridge_mountains.cpp b/src/server/scripts/EasternKingdoms/redridge_mountains.cpp index 7e376b65020..083a27568bd 100644 --- a/src/server/scripts/EasternKingdoms/redridge_mountains.cpp +++ b/src/server/scripts/EasternKingdoms/redridge_mountains.cpp @@ -86,7 +86,7 @@ public: if (uiI >= 65 && me->GetUnitMovementFlags() == MOVEMENTFLAG_WALKING) me->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING); - switch(uiI) + switch (uiI) { case 39: SetEscortPaused(true); @@ -115,7 +115,7 @@ public: { if (uiTimer <= uiDiff) { - switch(uiPhase) + switch (uiPhase) { case 1: me->SetStandState(UNIT_STAND_STATE_SIT); diff --git a/src/server/scripts/EasternKingdoms/silverpine_forest.cpp b/src/server/scripts/EasternKingdoms/silverpine_forest.cpp index cfcef442c93..32b4fc0e19a 100644 --- a/src/server/scripts/EasternKingdoms/silverpine_forest.cpp +++ b/src/server/scripts/EasternKingdoms/silverpine_forest.cpp @@ -141,7 +141,7 @@ public: if (!player) return; - switch(i) + switch (i) { case 1: DoScriptText(SAY_START, me, player);break; case 13: diff --git a/src/server/scripts/EasternKingdoms/stormwind_city.cpp b/src/server/scripts/EasternKingdoms/stormwind_city.cpp index 88f76d47c53..25fa0352548 100644 --- a/src/server/scripts/EasternKingdoms/stormwind_city.cpp +++ b/src/server/scripts/EasternKingdoms/stormwind_city.cpp @@ -346,7 +346,7 @@ public: void WaypointReached(uint32 uiPointId) { - switch(uiPointId) + switch (uiPointId) { case 14: SetEscortPaused(true); @@ -387,7 +387,7 @@ public: { if (uiTimer <= uiDiff) { - switch(uiPhase) + switch (uiPhase) { case 1: if (Creature* pGuard = me->FindNearestCreature(NPC_STORMWIND_ROYAL, 8.0f, true)) @@ -577,7 +577,7 @@ public: void WaypointReached(uint32 uiPointId) { - switch(uiPointId) + switch (uiPointId) { case 1: SetEscortPaused(true); @@ -605,7 +605,7 @@ public: { if (uiTimer <= uiDiff) { - switch(uiPhase) + switch (uiPhase) { case 1: DoScriptText(SAY_QUEST_ACCEPT_ATTACK, me); diff --git a/src/server/scripts/EasternKingdoms/tirisfal_glades.cpp b/src/server/scripts/EasternKingdoms/tirisfal_glades.cpp index c1f543fff65..e2a7ea9d3c6 100644 --- a/src/server/scripts/EasternKingdoms/tirisfal_glades.cpp +++ b/src/server/scripts/EasternKingdoms/tirisfal_glades.cpp @@ -123,7 +123,7 @@ public: return; } - switch(m_uiPhase) + switch (m_uiPhase) { case 1: DoScriptText(SAY_COMPLETE, me); diff --git a/src/server/scripts/EasternKingdoms/western_plaguelands.cpp b/src/server/scripts/EasternKingdoms/western_plaguelands.cpp index 2a2becb906f..06c64b76242 100644 --- a/src/server/scripts/EasternKingdoms/western_plaguelands.cpp +++ b/src/server/scripts/EasternKingdoms/western_plaguelands.cpp @@ -52,7 +52,7 @@ public: bool OnGossipSelect(Player* player, Creature* creature, uint32 /*uiSender*/, uint32 uiAction) { player->PlayerTalkClass->ClearMenus(); - switch(uiAction) + switch (uiAction) { case GOSSIP_ACTION_TRADE: player->GetSession()->SendListInventory(creature->GetGUID()); @@ -191,7 +191,7 @@ public: if (who->GetTypeId() == TYPEID_PLAYER) { - switch(me->GetAreaId()) + switch (me->GetAreaId()) { case 199: //felstone if (CAST_PLR(who)->GetQuestStatus(5216) == QUEST_STATUS_INCOMPLETE || @@ -358,7 +358,7 @@ public: case 22: break; case 23: - Ughost = me->SummonCreature(NPC_GHOST_UTHER, 971.86f, -1825.42f , 81.99f , 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000); + Ughost = me->SummonCreature(NPC_GHOST_UTHER, 971.86f, -1825.42f, 81.99f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000); Ughost->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING); DoScriptText(SAY_WP_4, Ughost, me); m_uiChatTimer = 4000; diff --git a/src/server/scripts/EasternKingdoms/westfall.cpp b/src/server/scripts/EasternKingdoms/westfall.cpp index da1f666fbab..7c0703d158b 100644 --- a/src/server/scripts/EasternKingdoms/westfall.cpp +++ b/src/server/scripts/EasternKingdoms/westfall.cpp @@ -83,7 +83,7 @@ public: { if (HasEscortState(STATE_ESCORT_ESCORTING)) { - switch(uiWPHolder) + switch (uiWPHolder) { case 7: DoScriptText(SAY_DS_DOWN_1, me); break; case 8: DoScriptText(SAY_DS_DOWN_2, me); break; @@ -105,7 +105,7 @@ public: uiWPHolder = uiPoint; - switch(uiPoint) + switch (uiPoint) { case 4: SetEquipmentSlots(false, EQUIP_NO_CHANGE, EQUIP_NO_CHANGE, EQUIP_ID_RIFLE); diff --git a/src/server/scripts/EasternKingdoms/wetlands.cpp b/src/server/scripts/EasternKingdoms/wetlands.cpp index 89effa01b98..f6d53d2bb51 100644 --- a/src/server/scripts/EasternKingdoms/wetlands.cpp +++ b/src/server/scripts/EasternKingdoms/wetlands.cpp @@ -69,7 +69,7 @@ public: void WaypointReached(uint32 uiPointId) { - switch(uiPointId) + switch (uiPointId) { case 2: if (me->HasStealthAura()) |
