mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
chore(Core/Misc): Some cleanup (#19970)
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
This commit is contained in:
@@ -194,7 +194,7 @@ public:
|
||||
|
||||
_events.Update(diff);
|
||||
|
||||
switch(_events.ExecuteEvent())
|
||||
switch (_events.ExecuteEvent())
|
||||
{
|
||||
case EVENT_SPELL_FIREBLAST:
|
||||
DoCastVictim(SPELL_FIREBLAST);
|
||||
|
||||
@@ -218,7 +218,7 @@ public:
|
||||
|
||||
_events.Update(diff);
|
||||
|
||||
switch(_events.ExecuteEvent())
|
||||
switch (_events.ExecuteEvent())
|
||||
{
|
||||
case EVENT_SPELL_SHADOWBOLTVOLLEY:
|
||||
DoCastVictim(SPELL_SHADOWBOLTVOLLEY);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -358,7 +358,7 @@ public:
|
||||
}
|
||||
break;
|
||||
case DATA_SOLAKAR_FLAMEWREATH:
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case IN_PROGRESS:
|
||||
if (SolakarState == NOT_STARTED)
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -456,7 +456,7 @@ public:
|
||||
|
||||
uint32 NextStep(uint32 nextStep)
|
||||
{
|
||||
switch(nextStep)
|
||||
switch (nextStep)
|
||||
{
|
||||
case 1:
|
||||
Talk(SAY_DIALOG_MEDIVH_1);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -417,7 +417,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
switch(events.ExecuteEvent())
|
||||
switch (events.ExecuteEvent())
|
||||
{
|
||||
case 1:
|
||||
me->CastSpell(me, BONE_ARMOR_SPELL, false);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user