mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
Fixed PCH compilation and gcc warnings fixed
+ removed some useless warning suppressions
This commit is contained in:
@@ -459,7 +459,7 @@ class boss_illidan_stormrage : public CreatureScript
|
||||
if (me->HasUnitState(UNIT_STATE_CASTING))
|
||||
return;
|
||||
|
||||
switch (uint32 eventId = events.ExecuteEvent())
|
||||
switch (events.ExecuteEvent())
|
||||
{
|
||||
case EVENT_SUMMON_MINIONS:
|
||||
if (me->HealthBelowPct(90))
|
||||
@@ -579,7 +579,7 @@ class boss_illidan_stormrage : public CreatureScript
|
||||
me->CastSpell(me, SPELL_THROW_GLAIVE2, false);
|
||||
break;
|
||||
case EVENT_PHASE_2_CHANGE_POS:
|
||||
beamPosId = (++beamPosId)%MAX_EYE_BEAM_POS;
|
||||
beamPosId = (beamPosId+1)%MAX_EYE_BEAM_POS;
|
||||
events.ScheduleEvent(EVENT_SPELL_FIREBALL, 8000, GROUP_PHASE_2_ABILITY);
|
||||
events.ScheduleEvent(EVENT_SPELL_DARK_BARRAGE, 18000, GROUP_PHASE_2_ABILITY);
|
||||
events.ScheduleEvent(EVENT_PHASE_2_EYE_BEAM, urand(25000, 50000), GROUP_PHASE_2_ABILITY);
|
||||
|
||||
@@ -221,7 +221,7 @@ class boss_alar : public CreatureScript
|
||||
me->SummonCreature(NPC_EMBER_OF_ALAR, *me, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 6000);
|
||||
}
|
||||
me->GetMotionMaster()->MovePoint(POINT_PLATFORM, alarPoints[platform], false, true);
|
||||
platform = (++platform)%4;
|
||||
platform = (platform+1)%4;
|
||||
events.ScheduleEvent(EVENT_SWITCH_PLATFORM, 30000);
|
||||
}
|
||||
me->setAttackTimer(BASE_ATTACK, 20000);
|
||||
|
||||
Reference in New Issue
Block a user