mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -87,7 +87,7 @@ struct boss_omor_the_unscarred : public BossAI
|
||||
|
||||
void KilledUnit(Unit*) override
|
||||
{
|
||||
if(!_hasSpoken)
|
||||
if (!_hasSpoken)
|
||||
{
|
||||
_hasSpoken = true;
|
||||
Talk(SAY_KILL);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@ struct boss_alar : public BossAI
|
||||
return;
|
||||
}
|
||||
|
||||
switch(id)
|
||||
switch (id)
|
||||
{
|
||||
case POINT_QUILL:
|
||||
scheduler.CancelGroup(GROUP_FLAME_BUFFET);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user