chore(Core/Misc): Some cleanup (#19970)

* remove weird blanks

* update if

* ) ) to ))

* missed some ) )

* now switch

* .
This commit is contained in:
Kitzunu
2024-09-21 19:34:31 +02:00
committed by GitHub
parent 0ba59c0053
commit 386aea03ee
157 changed files with 1606 additions and 1616 deletions

View File

@@ -194,7 +194,7 @@ public:
_events.Update(diff);
switch(_events.ExecuteEvent())
switch (_events.ExecuteEvent())
{
case EVENT_SPELL_FIREBLAST:
DoCastVictim(SPELL_FIREBLAST);

View File

@@ -218,7 +218,7 @@ public:
_events.Update(diff);
switch(_events.ExecuteEvent())
switch (_events.ExecuteEvent())
{
case EVENT_SPELL_SHADOWBOLTVOLLEY:
DoCastVictim(SPELL_SHADOWBOLTVOLLEY);

View File

@@ -456,7 +456,7 @@ public:
{
case TYPE_RING_OF_LAW:
encounter[0] = data;
switch(data)
switch (data)
{
case IN_PROGRESS:
TempSummonGrimstone = instance->SummonCreature(NPC_GRIMSTONE, GrimstonePositon);

View File

@@ -358,7 +358,7 @@ public:
}
break;
case DATA_SOLAKAR_FLAMEWREATH:
switch(data)
switch (data)
{
case IN_PROGRESS:
if (SolakarState == NOT_STARTED)

View File

@@ -242,7 +242,7 @@ struct boss_nightbane : public BossAI
_skeletonscheduler.Schedule(50ms, [this](TaskContext context)
{
//spawns skeletons every 2 seconds until skeletonCount is reached
if(_skeletonSpawnCounter < _skeletonCount)
if (_skeletonSpawnCounter < _skeletonCount)
{
me->CastSpell(_skeletonSpawnPos.GetPositionX(), _skeletonSpawnPos.GetPositionY(), _skeletonSpawnPos.GetPositionZ(), SPELL_SUMMON_SKELETON, true);
_skeletonSpawnCounter++;

View File

@@ -941,7 +941,7 @@ struct boss_julianne : public ScriptedAI
void DoAction(int32 action) override
{
switch(action)
switch (action)
{
case ACTION_FAKING_DEATH:
isFakingDeath = false;
@@ -1138,7 +1138,7 @@ struct boss_romulo : public ScriptedAI
void DoAction(int32 action) override
{
switch(action)
switch (action)
{
case ACTION_FAKING_DEATH:
isFakingDeath = false;

View File

@@ -456,7 +456,7 @@ public:
uint32 NextStep(uint32 nextStep)
{
switch(nextStep)
switch (nextStep)
{
case 1:
Talk(SAY_DIALOG_MEDIVH_1);

View File

@@ -140,7 +140,7 @@ public:
void SetData(uint32 type, uint32 data) override
{
switch(type)
switch (type)
{
case TYPE_MOGRAINE_AND_WHITE_EVENT:
if (data == IN_PROGRESS)
@@ -317,7 +317,7 @@ public:
mograine->Kill(me, me, true);
return 0;
default:
if(mograine)
if (mograine)
mograine->DespawnOrUnsummon(0);
return 0;
}
@@ -468,7 +468,7 @@ public:
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
switch (eventId)
{
case EVENT_SPELL_CRUSADER_STRIKE:
me->CastSpell(me->GetVictim(), SPELL_CRUSADER_STRIKE, true);

View File

@@ -417,7 +417,7 @@ public:
return;
}
switch(events.ExecuteEvent())
switch (events.ExecuteEvent())
{
case 1:
me->CastSpell(me, BONE_ARMOR_SPELL, false);

View File

@@ -281,7 +281,7 @@ public:
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
switch(events.ExecuteEvent())
switch (events.ExecuteEvent())
{
case EVENT_RESTORE_COMBAT:
me->SetReactState(REACT_AGGRESSIVE);

View File

@@ -193,7 +193,7 @@ public:
{
me->RemoveAurasDueToSpell(67541);
me->GetMotionMaster()->MoveCharge(11779.30f, -7065.43f, 24.92f, me->GetSpeed(MOVE_RUN), EVENT_CHARGE);
switch(summon->GetEntry())
switch (summon->GetEntry())
{
case NPC_SCOURGE_ZOMBIE:
events.ScheduleEvent(EVENT_SPAWN_WAVE_2, 3000);