diff options
Diffstat (limited to 'src/scripts')
34 files changed, 56 insertions, 56 deletions
diff --git a/src/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp b/src/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp index b6cac656fa9..010d59b319a 100644 --- a/src/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp +++ b/src/scripts/eastern_kingdoms/karazhan/boss_moroes.cpp @@ -149,7 +149,7 @@ struct boss_moroesAI : public ScriptedAI for (uint8 i = 0; i < 6; ++i) AddList.push_back(Adds[i]); - while(AddList.size() > 4) + while (AddList.size() > 4) AddList.erase((AddList.begin())+(rand()%AddList.size())); uint8 i = 0; diff --git a/src/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp b/src/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp index 0a1b431aa74..75f3dbead83 100644 --- a/src/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp +++ b/src/scripts/eastern_kingdoms/karazhan/boss_shade_of_aran.cpp @@ -190,7 +190,7 @@ struct boss_aranAI : public ScriptedAI } //cut down to size if we have more than 3 targets - while(targets.size() > 3) + while (targets.size() > 3) targets.erase(targets.begin()+rand()%targets.size()); uint32 i = 0; diff --git a/src/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp b/src/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp index 6383df31bdc..6caa11af714 100644 --- a/src/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp +++ b/src/scripts/eastern_kingdoms/magisters_terrace/boss_priestess_delrissa.cpp @@ -168,7 +168,7 @@ struct boss_priestess_delrissaAI : public ScriptedAI LackeyEntryList[i] = m_auiAddEntries[i]; //remove random entries - while(LackeyEntryList.size() > MAX_ACTIVE_LACKEY) + while (LackeyEntryList.size() > MAX_ACTIVE_LACKEY) LackeyEntryList.erase(LackeyEntryList.begin() + rand()%LackeyEntryList.size()); //summon all the remaining in vector diff --git a/src/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp b/src/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp index c0c1244c91c..394d25e5632 100644 --- a/src/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp +++ b/src/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp @@ -259,7 +259,7 @@ void npc_unworthy_initiateAI::UpdateAI(const uint32 diff) events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/eastern_kingdoms/zulaman/boss_hexlord.cpp b/src/scripts/eastern_kingdoms/zulaman/boss_hexlord.cpp index 7233ae76fad..bfd3ed51d17 100644 --- a/src/scripts/eastern_kingdoms/zulaman/boss_hexlord.cpp +++ b/src/scripts/eastern_kingdoms/zulaman/boss_hexlord.cpp @@ -302,7 +302,7 @@ struct boss_hex_lord_malacrassAI : public ScriptedAI for (uint8 i = 0; i < 8; ++i) AddList.push_back(AddEntryList[i]); - while(AddList.size() > 4) + while (AddList.size() > 4) AddList.erase(AddList.begin()+rand()%AddList.size()); uint8 i = 0; diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp index c97ea6968c1..9ef8d15a509 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp @@ -322,7 +322,7 @@ struct npc_announcer_toc5AI : public ScriptedAI { uiFirstBoss = urand(0,4); - while(uiSecondBoss == uiFirstBoss || uiThirdBoss == uiFirstBoss || uiThirdBoss == uiSecondBoss) + while (uiSecondBoss == uiFirstBoss || uiThirdBoss == uiFirstBoss || uiThirdBoss == uiSecondBoss) { uiSecondBoss = urand(0,4); uiThirdBoss = urand(0,4); diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp index a2909b4ad38..ed84bc92fd3 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp @@ -169,7 +169,7 @@ struct boss_garfrostAI : public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp index 84ac04f2d54..23c35600a18 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/boss_scourgelord_tyrannus.cpp @@ -151,7 +151,7 @@ struct boss_tyrannusAI : public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -216,7 +216,7 @@ struct boss_rimefangAI : public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp b/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp index 102c95d82f6..3aef8d60c95 100644 --- a/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp +++ b/src/scripts/northrend/frozen_halls/pit_of_saron/pit_of_saron.cpp @@ -177,7 +177,7 @@ struct mob_ymirjar_wrathbringerAI : public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -223,7 +223,7 @@ struct mob_ymirjar_skyCallerAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -273,7 +273,7 @@ struct mob_ymirjar_flamebearerAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -328,7 +328,7 @@ struct mob_ymirjar_deathbringerAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -375,7 +375,7 @@ struct mob_wrathbone_laborerAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -430,7 +430,7 @@ struct mob_wrathbone_coldwraithAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -480,7 +480,7 @@ struct mob_stonespine_gargoyleAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -531,7 +531,7 @@ struct mob_plagueborn_horrorAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -584,7 +584,7 @@ struct mob_iceborn_protodrakeAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -628,7 +628,7 @@ struct mob_hungering_ghoulAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -674,7 +674,7 @@ struct mob_fallen_warriorAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -727,7 +727,7 @@ struct mob_deathwhisper_torturerAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -777,7 +777,7 @@ struct mob_deathwhisper_shadowcasterAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -823,7 +823,7 @@ struct mob_deathwhisper_necrolyteAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -873,7 +873,7 @@ struct mob_wrathbone_sorcererAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -919,7 +919,7 @@ struct mob_geist_ambusherAI: public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp b/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp index 5dba116b0f5..7692dba37a5 100644 --- a/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp +++ b/src/scripts/northrend/naxxramas/boss_anubrekhan.cpp @@ -124,7 +124,7 @@ struct boss_anubrekhanAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_faerlina.cpp b/src/scripts/northrend/naxxramas/boss_faerlina.cpp index bdb00f40699..ab7c5a81e78 100644 --- a/src/scripts/northrend/naxxramas/boss_faerlina.cpp +++ b/src/scripts/northrend/naxxramas/boss_faerlina.cpp @@ -123,7 +123,7 @@ struct boss_faerlinaAI : public BossAI if (me->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp b/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp index 13b49e17f5c..2f583d201b6 100644 --- a/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp +++ b/src/scripts/northrend/naxxramas/boss_four_horsemen.cpp @@ -324,7 +324,7 @@ struct boss_four_horsemenAI : public BossAI if (me->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_gluth.cpp b/src/scripts/northrend/naxxramas/boss_gluth.cpp index 9bdb2b925e5..8e2bf131131 100644 --- a/src/scripts/northrend/naxxramas/boss_gluth.cpp +++ b/src/scripts/northrend/naxxramas/boss_gluth.cpp @@ -108,7 +108,7 @@ struct boss_gluthAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_gothik.cpp b/src/scripts/northrend/naxxramas/boss_gothik.cpp index ad890a41c21..82489258b4c 100644 --- a/src/scripts/northrend/naxxramas/boss_gothik.cpp +++ b/src/scripts/northrend/naxxramas/boss_gothik.cpp @@ -388,7 +388,7 @@ struct boss_gothikAI : public BossAI if (me->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_grobbulus.cpp b/src/scripts/northrend/naxxramas/boss_grobbulus.cpp index c77131e1f42..28fc676e1ca 100644 --- a/src/scripts/northrend/naxxramas/boss_grobbulus.cpp +++ b/src/scripts/northrend/naxxramas/boss_grobbulus.cpp @@ -64,7 +64,7 @@ struct boss_grobbulusAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_heigan.cpp b/src/scripts/northrend/naxxramas/boss_heigan.cpp index 44c3f3384c3..89e5d5adb19 100644 --- a/src/scripts/northrend/naxxramas/boss_heigan.cpp +++ b/src/scripts/northrend/naxxramas/boss_heigan.cpp @@ -98,7 +98,7 @@ struct boss_heiganAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp b/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp index a95eddc607d..65ee26e25fb 100644 --- a/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp +++ b/src/scripts/northrend/naxxramas/boss_kelthuzad.cpp @@ -377,7 +377,7 @@ struct boss_kelthuzadAI : public BossAI if (Phase == 1) { - while(uint32 eventId = events.GetEvent()) + while (uint32 eventId = events.GetEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_loatheb.cpp b/src/scripts/northrend/naxxramas/boss_loatheb.cpp index c79e077657b..40998e4bf77 100644 --- a/src/scripts/northrend/naxxramas/boss_loatheb.cpp +++ b/src/scripts/northrend/naxxramas/boss_loatheb.cpp @@ -56,7 +56,7 @@ struct boss_loathebAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_maexxna.cpp b/src/scripts/northrend/naxxramas/boss_maexxna.cpp index fb667186c7f..810c6561c96 100644 --- a/src/scripts/northrend/naxxramas/boss_maexxna.cpp +++ b/src/scripts/northrend/naxxramas/boss_maexxna.cpp @@ -87,7 +87,7 @@ struct boss_maexxnaAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_noth.cpp b/src/scripts/northrend/naxxramas/boss_noth.cpp index 23e807f1ed8..d7400928aea 100644 --- a/src/scripts/northrend/naxxramas/boss_noth.cpp +++ b/src/scripts/northrend/naxxramas/boss_noth.cpp @@ -136,7 +136,7 @@ struct boss_nothAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_patchwerk.cpp b/src/scripts/northrend/naxxramas/boss_patchwerk.cpp index 9caa79c36c7..dad2ed5f4ff 100644 --- a/src/scripts/northrend/naxxramas/boss_patchwerk.cpp +++ b/src/scripts/northrend/naxxramas/boss_patchwerk.cpp @@ -101,7 +101,7 @@ struct boss_patchwerkAI : public BossAI EncounterTime += diff; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_razuvious.cpp b/src/scripts/northrend/naxxramas/boss_razuvious.cpp index 4f49aa426fe..2575457aeac 100644 --- a/src/scripts/northrend/naxxramas/boss_razuvious.cpp +++ b/src/scripts/northrend/naxxramas/boss_razuvious.cpp @@ -96,7 +96,7 @@ struct boss_razuviousAI : public BossAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_sapphiron.cpp b/src/scripts/northrend/naxxramas/boss_sapphiron.cpp index 00a9762c431..964810b340d 100644 --- a/src/scripts/northrend/naxxramas/boss_sapphiron.cpp +++ b/src/scripts/northrend/naxxramas/boss_sapphiron.cpp @@ -233,7 +233,7 @@ struct boss_sapphironAI : public BossAI if (phase == PHASE_GROUND) { - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/naxxramas/boss_thaddius.cpp b/src/scripts/northrend/naxxramas/boss_thaddius.cpp index 09ba28f760c..7d3f9d0a615 100644 --- a/src/scripts/northrend/naxxramas/boss_thaddius.cpp +++ b/src/scripts/northrend/naxxramas/boss_thaddius.cpp @@ -218,7 +218,7 @@ struct boss_thaddiusAI : public BossAI if (me->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp b/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp index d792fca56da..101ddf7a7a5 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_assembly_of_iron.cpp @@ -219,7 +219,7 @@ struct boss_steelbreakerAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -329,7 +329,7 @@ struct boss_runemaster_molgeimAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -499,7 +499,7 @@ struct boss_stormcaller_brundirAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp b/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp index b2c2e8d904c..ea077af48ed 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_archavon.cpp @@ -104,7 +104,7 @@ struct boss_archavonAI : public ScriptedAI if (me->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -167,7 +167,7 @@ struct mob_archavon_warderAI : public ScriptedAI //npc 32353 events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp b/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp index 427d33a74c4..3916b6d71c6 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_emalon.cpp @@ -111,7 +111,7 @@ struct boss_emalonAI : public BossAI if (me->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -229,7 +229,7 @@ struct mob_tempest_minionAI : public ScriptedAI } } - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp b/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp index 52de285ac76..5fbe7378c85 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_koralon.cpp @@ -115,7 +115,7 @@ struct boss_koralonAI : public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -174,7 +174,7 @@ struct mob_flame_warderAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp b/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp index 8746a9ff04e..5540acd6ad1 100644 --- a/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp +++ b/src/scripts/northrend/vault_of_archavon/boss_toravon.cpp @@ -104,7 +104,7 @@ struct boss_toravonAI : public ScriptedAI if (m_creature->hasUnitState(UNIT_STAT_CASTING)) return; - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { @@ -157,7 +157,7 @@ struct mob_frost_warderAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/outland/black_temple/boss_mother_shahraz.cpp b/src/scripts/outland/black_temple/boss_mother_shahraz.cpp index 1a18d5fc36c..b8596e1bf62 100644 --- a/src/scripts/outland/black_temple/boss_mother_shahraz.cpp +++ b/src/scripts/outland/black_temple/boss_mother_shahraz.cpp @@ -202,7 +202,7 @@ struct boss_shahrazAI : public ScriptedAI ++BeamCount; uint32 Beam = CurrentBeam; if (BeamCount > 3) - while(CurrentBeam == Beam) + while (CurrentBeam == Beam) CurrentBeam = rand()%3; } else BeamTimer -= diff; diff --git a/src/scripts/outland/black_temple/boss_supremus.cpp b/src/scripts/outland/black_temple/boss_supremus.cpp index c7cc7055ffa..88e701d8f13 100644 --- a/src/scripts/outland/black_temple/boss_supremus.cpp +++ b/src/scripts/outland/black_temple/boss_supremus.cpp @@ -174,7 +174,7 @@ struct boss_supremusAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/outland/black_temple/boss_warlord_najentus.cpp b/src/scripts/outland/black_temple/boss_warlord_najentus.cpp index 12f1eb80975..838bbef5d75 100644 --- a/src/scripts/outland/black_temple/boss_warlord_najentus.cpp +++ b/src/scripts/outland/black_temple/boss_warlord_najentus.cpp @@ -140,7 +140,7 @@ struct boss_najentusAI : public ScriptedAI events.Update(diff); - while(uint32 eventId = events.ExecuteEvent()) + while (uint32 eventId = events.ExecuteEvent()) { switch(eventId) { diff --git a/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp b/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp index 54b8666dd97..e992d6258f8 100644 --- a/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp +++ b/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_fathomlord_karathress.cpp @@ -665,7 +665,7 @@ struct boss_fathomguard_caribdisAI : public ScriptedAI // It can be cast on any of the mobs Unit *pUnit = NULL; - while(pUnit == NULL || !pUnit->isAlive()) + while (pUnit == NULL || !pUnit->isAlive()) { pUnit = selectAdvisorUnit(); } diff --git a/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp b/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp index 156d57cb47a..3ba2272463c 100644 --- a/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp +++ b/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_morogrim_tidewalker.cpp @@ -235,7 +235,7 @@ struct boss_morogrim_tidewalkerAI : public ScriptedAI if (pTarget) itr = list.find(pTarget->GetGUID()); ++counter; - } while(itr != list.end()); + } while (itr != list.end()); if (pTarget) { |
