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

@@ -358,7 +358,7 @@ struct boss_fathomguard_tidalvess : public ScriptedAI
int32 action = 0;
uint8 group = 0;
switch(entry)
switch (entry)
{
case NPC_SPITFIRE_TOTEM:
timer = 59s;
@@ -407,7 +407,7 @@ struct boss_fathomguard_tidalvess : public ScriptedAI
void SummonTotem(uint32 entry)
{
switch(entry)
switch (entry)
{
case NPC_SPITFIRE_TOTEM:
DoCastSelf(SPELL_SPITFIRE_TOTEM);

View File

@@ -103,7 +103,7 @@ struct boss_lady_vashj : public BossAI
void KilledUnit(Unit* /*victim*/) override
{
if(!_recentlySpoken)
if (!_recentlySpoken)
{
Talk(SAY_SLAY);
_recentlySpoken = true;
@@ -132,7 +132,7 @@ struct boss_lady_vashj : public BossAI
void JustSummoned(Creature* summon) override
{
summons.Summon(summon);
switch(summon->GetEntry()) {
switch (summon->GetEntry()) {
case(WORLD_TRIGGER):
summon->CastSpell(summon, SPELL_MAGIC_BARRIER);
break;

View File

@@ -93,7 +93,7 @@ struct boss_high_king_maulgar : public BossAI
void KilledUnit(Unit* /*victim*/) override
{
if(!_recentlySpoken)
if (!_recentlySpoken)
{
Talk(SAY_SLAY);
_recentlySpoken = true;

View File

@@ -87,7 +87,7 @@ struct boss_omor_the_unscarred : public BossAI
void KilledUnit(Unit*) override
{
if(!_hasSpoken)
if (!_hasSpoken)
{
_hasSpoken = true;
Talk(SAY_KILL);

View File

@@ -215,7 +215,7 @@ struct boss_magtheridon : public BossAI
});
}
}
else if (action == ACTION_BANISH_SELF )
else if (action == ACTION_BANISH_SELF)
{
Talk(SAY_BANISH);
me->CastSpell(me, SPELL_SHADOW_CAGE_STUN, true);

View File

@@ -271,7 +271,7 @@ struct boss_grand_warlock_nethekurse : public BossAI
{
// check if door is openened
//this should only happen before the intro, if the door is picked by someone
if(nethekursedoor->GetGoState() == 0)
if (nethekursedoor->GetGoState() == 0)
{
DoAction(ACTION_START_INTRO);
}

View File

@@ -337,7 +337,7 @@ struct boss_alar : public BossAI
return;
}
switch(id)
switch (id)
{
case POINT_QUILL:
scheduler.CancelGroup(GROUP_FLAME_BUFFET);

View File

@@ -338,7 +338,7 @@ struct boss_kaelthas : public BossAI
void DoAction(int32 action) override
{
switch(action)
switch (action)
{
case ACTION_START_SANGUINAR:
IntroduceNewAdvisor(SAY_INTRO_SANGUINAR, ACTION_START_SANGUINAR);
@@ -610,7 +610,7 @@ struct boss_kaelthas : public BossAI
Talk(talkIntroduction);
});
//switch because talk times are different
switch(kaelAction)
switch (kaelAction)
{
case ACTION_START_SANGUINAR:
attackStartTimer = 14500ms;
@@ -685,7 +685,7 @@ struct boss_kaelthas : public BossAI
AttackStart(target);
}
ScheduleHealthCheckEvent(50, [&]{
if(!_transitionSceneReached)
if (!_transitionSceneReached)
{
_transitionSceneReached = true;
scheduler.CancelAll();