diff options
| author | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
| commit | 46f0674e237dd8fe97ba4f0769e18b4adfce841b (patch) | |
| tree | 4556d27751077c2ed37a445493ed93a4d08e981b /src/scripts/outland | |
| parent | 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 (diff) | |
Code Style (game + scripts only):
">=" --> " >= " (when needed)
" >=" --> " >="
">= " --> ">= "
"<=" --> " <= " (when needed)
" <=" --> " <="
"<= " --> "<= "
" ==" --> " =="
"== " --> "== "
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/outland')
4 files changed, 8 insertions, 8 deletions
diff --git a/src/scripts/outland/black_temple/boss_bloodboil.cpp b/src/scripts/outland/black_temple/boss_bloodboil.cpp index b1fce8d4d42..da598ed0ea2 100644 --- a/src/scripts/outland/black_temple/boss_bloodboil.cpp +++ b/src/scripts/outland/black_temple/boss_bloodboil.cpp @@ -161,7 +161,7 @@ struct boss_gurtogg_bloodboilAI : public ScriptedAI for (uint32 i = 0; i<3; ++i) { uint8 eff = spellInfo->Effect[i]; - if (eff>=TOTAL_SPELL_EFFECTS) + if (eff >= TOTAL_SPELL_EFFECTS) continue; Aura *Aur = new Aura(spellInfo, i, pTarget, pTarget, pTarget); diff --git a/src/scripts/outland/black_temple/boss_supremus.cpp b/src/scripts/outland/black_temple/boss_supremus.cpp index 88e701d8f13..23423b7a581 100644 --- a/src/scripts/outland/black_temple/boss_supremus.cpp +++ b/src/scripts/outland/black_temple/boss_supremus.cpp @@ -250,7 +250,7 @@ struct npc_volcanoAI : public Scripted_NoMovementAI void UpdateAI(const uint32 diff) { - if (wait<=diff)//wait 3secs before casting + if (wait <= diff)//wait 3secs before casting { DoCast(m_creature, SPELL_VOLCANIC_ERUPTION); wait = 60000; diff --git a/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp b/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp index 02911782b1c..cd8d12a097e 100644 --- a/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp +++ b/src/scripts/outland/coilfang_resevoir/serpent_shrine/boss_leotheras_the_blind.cpp @@ -384,7 +384,7 @@ struct boss_leotheras_the_blindAI : public ScriptedAI //Return since we have no target if (m_creature->HasAura(AURA_BANISH) || !UpdateVictim()) { - if (BanishTimer<= diff) + if (BanishTimer <= diff) { CheckBanish();//no need to check every update tick BanishTimer = 1000; diff --git a/src/scripts/outland/tempest_keep/the_eye/boss_astromancer.cpp b/src/scripts/outland/tempest_keep/the_eye/boss_astromancer.cpp index fcc76c4eec3..1287bfa290e 100644 --- a/src/scripts/outland/tempest_keep/the_eye/boss_astromancer.cpp +++ b/src/scripts/outland/tempest_keep/the_eye/boss_astromancer.cpp @@ -260,7 +260,7 @@ struct boss_high_astromancer_solarianAI : public ScriptedAI //After these 50 seconds she portals to the middle of the room and disappears, leaving 3 light portals behind. m_creature->GetMotionMaster()->Clear(); m_creature->GetMap()->CreatureRelocation(m_creature, CENTER_X, CENTER_Y, CENTER_Z, CENTER_O); - for (uint8 i=0; i<=2; ++i) + for (uint8 i=0; i <= 2; ++i) { if (!i) { @@ -283,7 +283,7 @@ struct boss_high_astromancer_solarianAI : public ScriptedAI Portals[2][0] = Portals[2][0]+7*i; Portals[2][1] = Portal_Y(Portals[2][0], LARGE_PORTAL_RADIUS); } - for (int i=0; i<=2; ++i) + for (int i=0; i <= 2; ++i) { if (Creature* Summoned = m_creature->SummonCreature(NPC_ASTROMANCER_SOLARIAN_SPOTLIGHT, Portals[i][0], Portals[i][1], Portals[i][2], CENTER_O, TEMPSUMMON_TIMED_DESPAWN, Phase2_Timer+Phase3_Timer+AppearDelay_Timer+1700)) { @@ -302,8 +302,8 @@ struct boss_high_astromancer_solarianAI : public ScriptedAI if (Phase2_Timer <= diff) { Phase = 3; - for (int i=0; i<=2; ++i) - for (int j=1; j<=4; j++) + for (int i=0; i <= 2; ++i) + for (int j=1; j <= 4; j++) SummonMinion(NPC_SOLARIUM_AGENT, Portals[i][0], Portals[i][1], Portals[i][2]); DoScriptText(SAY_SUMMON1, m_creature); @@ -325,7 +325,7 @@ struct boss_high_astromancer_solarianAI : public ScriptedAI m_creature->GetMotionMaster()->Clear(); m_creature->GetMap()->CreatureRelocation(m_creature, Portals[i][0], Portals[i][1], Portals[i][2], CENTER_O); - for (int j=0; j<=2; j++) + for (int j=0; j <= 2; j++) if (j!=i) SummonMinion(NPC_SOLARIUM_PRIEST, Portals[j][0], Portals[j][1], Portals[j][2]); |
