mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Misc: Pass std::chrono types by value everywhere.
(cherry picked from commit 2ef9d301f0)
This commit is contained in:
@@ -167,7 +167,7 @@ public:
|
||||
void SetupGroundPhase()
|
||||
{
|
||||
events.SetPhase(PHASE_GROUND);
|
||||
events.ScheduleEvent(EVENT_CLEAVE, Seconds(0), Seconds(15), GROUP_GROUND);
|
||||
events.ScheduleEvent(EVENT_CLEAVE, 0s, Seconds(15), GROUP_GROUND);
|
||||
events.ScheduleEvent(EVENT_TAIL_SWEEP, Seconds(4), Seconds(23), GROUP_GROUND);
|
||||
events.ScheduleEvent(EVENT_BELLOWING_ROAR, Seconds(48), GROUP_GROUND);
|
||||
events.ScheduleEvent(EVENT_CHARRED_EARTH, Seconds(12), Seconds(18), GROUP_GROUND);
|
||||
|
||||
@@ -386,12 +386,12 @@ public:
|
||||
_assassinCount = 6;
|
||||
_guardianCount = 2;
|
||||
_venomancerCount = 2;
|
||||
events.ScheduleEvent(EVENT_DARTER, Seconds(0), 0, PHASE_SUBMERGE);
|
||||
events.ScheduleEvent(EVENT_DARTER, 0s, 0, PHASE_SUBMERGE);
|
||||
break;
|
||||
}
|
||||
_petCount = _guardianCount + _venomancerCount;
|
||||
if (_assassinCount)
|
||||
events.ScheduleEvent(EVENT_ASSASSIN, Seconds(0), 0, PHASE_SUBMERGE);
|
||||
events.ScheduleEvent(EVENT_ASSASSIN, 0s, 0, PHASE_SUBMERGE);
|
||||
if (_guardianCount)
|
||||
events.ScheduleEvent(EVENT_GUARDIAN, Seconds(4), 0, PHASE_SUBMERGE);
|
||||
if (_venomancerCount)
|
||||
|
||||
@@ -103,7 +103,7 @@ class boss_faerlina : public CreatureScript
|
||||
summons.DoZoneInCombat();
|
||||
events.ScheduleEvent(EVENT_POISON, randtime(Seconds(10), Seconds(15)));
|
||||
events.ScheduleEvent(EVENT_FIRE, randtime(Seconds(6), Seconds(18)));
|
||||
events.ScheduleEvent(EVENT_FRENZY, Minutes(1)+randtime(Seconds(0), Seconds(20)));
|
||||
events.ScheduleEvent(EVENT_FRENZY, Minutes(1)+randtime(0s, Seconds(20)));
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
@@ -173,7 +173,7 @@ class boss_faerlina : public CreatureScript
|
||||
{
|
||||
DoCast(SPELL_FRENZY);
|
||||
Talk(EMOTE_FRENZY);
|
||||
events.Repeat(Minutes(1) + randtime(Seconds(0), Seconds(20)));
|
||||
events.Repeat(Minutes(1) + randtime(0s, Seconds(20)));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -528,7 +528,7 @@ class boss_gothik : public CreatureScript
|
||||
break;
|
||||
case EVENT_RESUME_ATTACK:
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
events.ScheduleEvent(EVENT_BOLT, Seconds(0), 0, PHASE_TWO);
|
||||
events.ScheduleEvent(EVENT_BOLT, 0s, 0, PHASE_TWO);
|
||||
// return to the start of this method so victim side etc is re-evaluated
|
||||
return UpdateAI(0u); // tail recursion for efficiency
|
||||
case EVENT_BOLT:
|
||||
|
||||
@@ -182,7 +182,7 @@ class boss_sapphiron : public CreatureScript
|
||||
me->CastSpell(me, SPELL_FROST_AURA, true);
|
||||
|
||||
events.SetPhase(PHASE_GROUND);
|
||||
events.ScheduleEvent(EVENT_CHECK_RESISTS, Seconds(0));
|
||||
events.ScheduleEvent(EVENT_CHECK_RESISTS, 0s);
|
||||
events.ScheduleEvent(EVENT_BERSERK, Minutes(15));
|
||||
EnterPhaseGround(true);
|
||||
}
|
||||
@@ -207,7 +207,7 @@ class boss_sapphiron : public CreatureScript
|
||||
void MovementInform(uint32 /*type*/, uint32 id) override
|
||||
{
|
||||
if (id == 1)
|
||||
events.ScheduleEvent(EVENT_LIFTOFF, Seconds(0), 0, PHASE_FLIGHT);
|
||||
events.ScheduleEvent(EVENT_LIFTOFF, 0s, 0, PHASE_FLIGHT);
|
||||
}
|
||||
|
||||
void DoAction(int32 param) override
|
||||
|
||||
@@ -223,7 +223,7 @@ class boss_erekem : public CreatureScript
|
||||
task.Repeat(Seconds(8), Seconds(13));
|
||||
});
|
||||
|
||||
scheduler.Schedule(Seconds(0), [this](TaskContext task)
|
||||
scheduler.Schedule(0s, [this](TaskContext task)
|
||||
{
|
||||
for (uint32 i = DATA_EREKEM_GUARD_1; i <= DATA_EREKEM_GUARD_2; ++i)
|
||||
{
|
||||
|
||||
@@ -586,7 +586,7 @@ class npc_azure_saboteur : public CreatureScript
|
||||
{
|
||||
if (type == EFFECT_MOTION_TYPE && pointId == POINT_INTRO)
|
||||
{
|
||||
_scheduler.Schedule(Seconds(0), [this](TaskContext task)
|
||||
_scheduler.Schedule(0s, [this](TaskContext task)
|
||||
{
|
||||
me->CastSpell(me, SPELL_SHIELD_DISRUPTION, false);
|
||||
|
||||
|
||||
@@ -1459,7 +1459,7 @@ public:
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case NPC_ENRAGED_WATER_SPIRIT:
|
||||
_events.ScheduleEvent(EVENT_ENRAGED_WATER_SPIRIT, Seconds(0), Seconds(1));
|
||||
_events.ScheduleEvent(EVENT_ENRAGED_WATER_SPIRIT, 0s, Seconds(1));
|
||||
break;
|
||||
case NPC_ENRAGED_FIRE_SPIRIT:
|
||||
if (!me->GetAura(SPELL_FEL_FIRE_AURA))
|
||||
|
||||
Reference in New Issue
Block a user