From 330e7100cbbf746206b542b0f13a3d06fcac0925 Mon Sep 17 00:00:00 2001 From: Carbenium Date: Tue, 21 Jul 2020 21:48:31 +0200 Subject: Core/Scripts: Fix timing issue of EVENT_FLY_TO_RANDOM_PILLAR during Illidan encounter The intention here is to add additional 30 seconds of delay to the current delay of EVENT_FLY_TO_RANDOM_PILLAR. Instead of EventMap::GetNextEventTime, EventMap::GetTimeUntilEvent has to be used which returns the currently scheduled delay until the event occurs. EventMap::GetNextEventTime instead exposes the timer value internal to EventMap at which the event should occur. (cherry picked from commit f1f251eb381bccc9164e29a81da9e013090543a4) --- src/server/scripts/Outland/BlackTemple/boss_illidan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp index d9fb44cbe34..9e05549923c 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp @@ -915,7 +915,7 @@ struct boss_illidan_stormrage : public BossAI if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 150.0f, true)) DoCast(target, SPELL_DARK_BARRAGE); events.RescheduleEvent(EVENT_EYE_BLAST, Seconds(5), GROUP_PHASE_2); - uint32 currentTime = events.GetNextEventTime(EVENT_FLY_TO_RANDOM_PILLAR); + uint32 currentTime = events.GetTimeUntilEvent(EVENT_FLY_TO_RANDOM_PILLAR); events.RescheduleEvent(EVENT_FLY_TO_RANDOM_PILLAR, Seconds(currentTime) + Seconds(30), GROUP_PHASE_2); break; } -- cgit v1.2.3