aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms/SunwellPlateau
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2011-09-29 12:43:05 +0200
committerSpp <spp@jorge.gr>2011-09-29 12:43:05 +0200
commitb16d2245bbd374805d15cdca585e8b42bf139605 (patch)
treeb7b63c567112e1999a2566611363cf5e83adb1be /src/server/scripts/EasternKingdoms/SunwellPlateau
parent8b820baa7324d41df264f48e344d62584bff70f8 (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/SunwellPlateau')
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp10
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_felmyst.cpp8
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kalecgos.cpp6
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp14
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/boss_muru.cpp16
-rw-r--r--src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp12
6 files changed, 33 insertions, 33 deletions
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);