Skip to content

Commit fd3d1cb

Browse files
author
NoFantasy
committed
[1814] Remove some unwanted tabs and whitespace.
Remove some unwanted tabs and whitespace. git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@1814 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent e9a6e5e commit fd3d1cb

10 files changed

Lines changed: 36 additions & 38 deletions

File tree

scripts/eastern_kingdoms/molten_core/molten_core.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ CreatureAI* GetAI_mob_ancient_core_hound(Creature* pCreature)
5555
uint32 RandDebuff = 0;
5656
switch(urand(0, 5))
5757
{
58-
case 0 : RandDebuff = SPELL_GROUND_STOMP; break;
59-
case 1 : RandDebuff = SPELL_ANCIENT_DREAD; break;
60-
case 2 : RandDebuff = SPELL_CAUTERIZING_FLAMES; break;
61-
case 3 : RandDebuff = SPELL_WITHERING_HEAT; break;
62-
case 4 : RandDebuff = SPELL_ANCIENT_DESPAIR; break;
63-
case 5 : RandDebuff = SPELL_ANCIENT_HYSTERIA; break;
58+
case 0: RandDebuff = SPELL_GROUND_STOMP; break;
59+
case 1: RandDebuff = SPELL_ANCIENT_DREAD; break;
60+
case 2: RandDebuff = SPELL_CAUTERIZING_FLAMES; break;
61+
case 3: RandDebuff = SPELL_WITHERING_HEAT; break;
62+
case 4: RandDebuff = SPELL_ANCIENT_DESPAIR; break;
63+
case 5: RandDebuff = SPELL_ANCIENT_HYSTERIA; break;
6464
}
6565
pAI->m_Spell[1].bEnabled = true;
6666
pAI->m_Spell[1].uiSpellId = RandDebuff;

scripts/eastern_kingdoms/redridge_mountains.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ struct MANGOS_DLL_DECL npc_corporal_keeshan_escortAI : public npc_escortAI
7171
break;
7272
}
7373
}
74-
75-
void WaypointReached(uint32 uiWP)
74+
75+
void WaypointReached(uint32 uiWP)
7676
{
7777
switch (uiWP)
7878
{
@@ -96,7 +96,7 @@ struct MANGOS_DLL_DECL npc_corporal_keeshan_escortAI : public npc_escortAI
9696

9797
if (m_uiMockingBlowTimer < uiDiff)
9898
{
99-
DoCastSpellIfCan(m_creature->getVictim(), SPELL_MOCKING_BLOW);
99+
DoCastSpellIfCan(m_creature->getVictim(), SPELL_MOCKING_BLOW);
100100
m_uiMockingBlowTimer = 5000;
101101
}
102102
else
@@ -129,8 +129,8 @@ bool QuestAccept_npc_corporal_keeshan(Player* pPlayer, Creature* pCreature, cons
129129
pEscortAI->Start(false, pPlayer->GetGUID(), pQuest);
130130
}
131131
}
132-
return true;
133132

133+
return true;
134134
}
135135

136136
void AddSC_redridge_mountains()

scripts/eastern_kingdoms/shadowfang_keep/shadowfang_keep.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ struct MANGOS_DLL_DECL boss_arugalAI : public ScriptedAI
526526
if (!i)
527527
pLeader = pVoidwalker;
528528

529-
530529
if (mob_arugal_voidwalkerAI* pVoidwalkerAI = dynamic_cast<mob_arugal_voidwalkerAI*>(pVoidwalker->AI()))
531530
pVoidwalkerAI->SetPosition(i,pLeader);
532531

@@ -651,7 +650,6 @@ struct MANGOS_DLL_DECL boss_arugalAI : public ScriptedAI
651650
else
652651
m_uiTeleportTimer = urand(48000, 55000);
653652

654-
655653
m_posPosition = posNewPosition;
656654
}
657655
else
@@ -662,18 +660,18 @@ struct MANGOS_DLL_DECL boss_arugalAI : public ScriptedAI
662660
}
663661

664662
void AttackStart(Unit* pWho)
665-
{
663+
{
666664
if (!m_bEventMode)
667665
ScriptedAI::AttackStart(pWho);
668666
}
669667

670668
//make the code nice and pleasing to the eye
671669
inline float GetManaPercent()
672-
{
670+
{
673671
return (((float)m_creature->GetPower(POWER_MANA) / (float)m_creature->GetMaxPower(POWER_MANA)) * 100);
674672
}
675673

676-
inline float GetVictimDistance()
674+
inline float GetVictimDistance()
677675
{
678676
return (m_creature->getVictim() ? m_creature->GetDistance2d(m_creature->getVictim()) : 999.9f);
679677
}

scripts/eastern_kingdoms/zulgurub/boss_marli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct MANGOS_DLL_DECL boss_marliAI : public ScriptedAI
214214
m_uiWebs_Timer -= uiDiff;
215215

216216
if (m_bHasWebbed && m_uiCharge_Timer < uiDiff)
217-
{
217+
{
218218
//Shouldn't be random target but highestaggro not Webbed player
219219
if (Unit* pTarget = m_creature->SelectAttackingTarget(ATTACKING_TARGET_RANDOM,0))
220220
{

scripts/kalimdor/caverns_of_time/culling_of_stratholme/instance_culling_of_stratholme.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ instance_culling_of_stratholme::instance_culling_of_stratholme(Map* pMap) : Scri
6767
m_uiEpochGUID(0),
6868
m_uiCorrupterGUID(0),
6969
m_uiLordaeronCrierGUID(0),
70-
70+
7171
m_uiBelfastGUID(0),
7272
m_uiForrestenGUID(0),
7373
m_uiSiabiGUID(0),
@@ -80,7 +80,7 @@ instance_culling_of_stratholme::instance_culling_of_stratholme(Map* pMap) : Scri
8080
m_uiAndersonGUID(0),
8181
m_uiMooreGUID(0),
8282
m_uiBattsonGUID(0),
83-
83+
8484
m_uiOReillyGUID(0),
8585

8686
m_uiDoorBookcaseGUID(0),
@@ -259,7 +259,7 @@ void instance_culling_of_stratholme::SetData(uint32 uiType, uint32 uiData)
259259
DoUpdateWorldState(WORLD_STATE_TIME_COUNTER, uiData/(MINUTE*IN_MILLISECONDS));
260260
break;
261261
case TYPE_INFINITE_CORRUPTER:
262-
m_auiEncounter[TYPE_INFINITE_CORRUPTER] = uiData;
262+
m_auiEncounter[TYPE_INFINITE_CORRUPTER] = uiData;
263263
switch(uiData)
264264
{
265265
case IN_PROGRESS:
@@ -335,13 +335,13 @@ void instance_culling_of_stratholme::OnPlayerEnter(Player* pPlayer)
335335
{
336336
DoSpawnArthasIfNeeded();
337337
DoSpawnChromieIfNeeded();
338-
338+
339339
// Show World States if needed, TODO verify if needed and if this is the right way
340340
if (m_auiEncounter[TYPE_GRAIN_EVENT] == IN_PROGRESS || m_auiEncounter[TYPE_GRAIN_EVENT] == SPECIAL)
341341
DoUpdateWorldState(WORLD_STATE_CRATES, 1); // Show Crates Counter
342342
else
343343
DoUpdateWorldState(WORLD_STATE_CRATES, 0); // Remove Crates Counter
344-
344+
345345
if (m_auiEncounter[TYPE_MEATHOOK_EVENT] == IN_PROGRESS)
346346
DoUpdateWorldState(WORLD_STATE_WAVE, 1); // Add WaveCounter
347347
else if (m_auiEncounter[TYPE_SALRAMM_EVENT] == IN_PROGRESS)

scripts/kalimdor/ruins_of_ahnqiraj/boss_ayamiss.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct MANGOS_DLL_DECL boss_ayamissAI : public ScriptedAI
9090
m_uiPoisonStingerTimer -= uiDiff;
9191
}
9292
else
93-
{
93+
{
9494
//m_uiSummonSwarmerTimer
9595
if (m_uiSummonSwarmerTimer < uiDiff)
9696
{

scripts/kalimdor/ruins_of_ahnqiraj/boss_moam.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct MANGOS_DLL_DECL boss_moamAI : public ScriptedAI
8787
m_uiPhase = PHASE_ENERGIZING;
8888
return;
8989
}
90-
}
90+
}
9191
else
9292
m_uiCheckoutMana_Timer -= uiDiff;
9393

@@ -125,15 +125,15 @@ struct MANGOS_DLL_DECL boss_moamAI : public ScriptedAI
125125
std::advance(itr, urand(0, lTargets.size()-1));
126126

127127
DoCastSpellIfCan(*itr, SPELL_DRAIN_MANA);
128-
}
128+
}
129129
else
130130
m_uiManaDrain_Timer -= uiDiff;
131131

132132
if (m_uiTrample_Timer <= uiDiff)
133133
{
134134
DoCastSpellIfCan(m_creature->getVictim(), SPELL_TRAMPLE);
135135
m_uiTrample_Timer = 15000;
136-
}
136+
}
137137
else
138138
m_uiTrample_Timer -= uiDiff;
139139

@@ -151,7 +151,7 @@ struct MANGOS_DLL_DECL boss_moamAI : public ScriptedAI
151151
m_uiPhase = PHASE_ATTACKING;
152152
return;
153153
}
154-
}
154+
}
155155
else
156156
m_uiCheckoutMana_Timer -= uiDiff;
157157
break;

scripts/northrend/nexus/nexus/boss_keristrasza.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct MANGOS_DLL_DECL boss_keristraszaAI : public ScriptedAI
8282
return;
8383

8484
if (m_creature->isAlive())
85-
{
85+
{
8686
if (m_pInstance->GetData(TYPE_KERISTRASZA) != SPECIAL)
8787
m_creature->CastSpell(m_creature, SPELL_FROZEN_PRISON, true);
8888
}

scripts/world/areatrigger_scripts.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ at_childrens_week_spot 3546,3547,3548,3552,3549,3550
3232
EndContentData */
3333

3434
#include "precompiled.h"
35-
36-
uint32 TriggerOrphanSpell[6][3] =
35+
36+
static uint32 TriggerOrphanSpell[6][3] =
3737
{
38-
{3546, 14305, 65056}, // The Bough of the Eternals
39-
{3547, 14444, 65059}, // Lordaeron Throne Room
40-
{3548, 14305, 65055}, // The Stonewrought Dam
41-
{3549, 14444, 65058}, // Gateway to the Frontier
42-
{3550, 14444, 65057}, // Down at the Docks
43-
{3552, 14305, 65054} // Spooky Lighthouse
38+
{3546, 14305, 65056}, // The Bough of the Eternals
39+
{3547, 14444, 65059}, // Lordaeron Throne Room
40+
{3548, 14305, 65055}, // The Stonewrought Dam
41+
{3549, 14444, 65058}, // Gateway to the Frontier
42+
{3550, 14444, 65057}, // Down at the Docks
43+
{3552, 14305, 65054} // Spooky Lighthouse
4444
};
4545

4646
bool AreaTrigger_at_childrens_week_spot(Player* pPlayer, AreaTriggerEntry const* pAt)
@@ -206,7 +206,7 @@ bool AreaTrigger_at_waygate(Player* pPlayer, AreaTriggerEntry const* pAt)
206206
{
207207
switch(pAt->id)
208208
{
209-
case AT_WAYGATE_SHOLOZAR : pPlayer->CastSpell(pPlayer, SPELL_SHOLOZAR_TO_UNGORO_TELEPORT, false); break;
209+
case AT_WAYGATE_SHOLOZAR: pPlayer->CastSpell(pPlayer, SPELL_SHOLOZAR_TO_UNGORO_TELEPORT, false); break;
210210
case AT_WAYGATE_UNGORO: pPlayer->CastSpell(pPlayer, SPELL_UNGORO_TO_SHOLOZAR_TELEPORT, false); break;
211211
}
212212
}

scripts/world/go_scripts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,14 +432,14 @@ enum
432432
SAY_AGGRO = -1000579
433433
};
434434

435-
float Position[4] = {-327.99f, 221.74f, -20.31f, 3.87f};
435+
float Position[4] = {-327.99f, 221.74f, -20.31f, 3.87f};
436436

437437
bool GOHello_go_blood_filled_orb(Player* pPlayer, GameObject* pGo)
438438
{
439439
if (Creature* pZelemar = pGo->SummonCreature(NPC_ZELEMAR_THE_WRATHFULL, Position[0], Position[1], Position[2], Position[3], TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 30000))
440440
{
441441
DoScriptText(SAY_AGGRO, pZelemar);
442-
pZelemar->AI()->AttackStart(pPlayer);
442+
pZelemar->AI()->AttackStart(pPlayer);
443443
}
444444
return false;
445445
}

0 commit comments

Comments
 (0)