diff options
author | Carbenium <carbenium@outlook.com> | 2020-07-21 21:48:31 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 22:19:24 +0100 |
commit | 330e7100cbbf746206b542b0f13a3d06fcac0925 (patch) | |
tree | 41a9b97d0a901728fa5118e37414acb750597168 | |
parent | c8a4cc806824d93f63cc7e0299428d7b524edddd (diff) |
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)
-rw-r--r-- | src/server/scripts/Outland/BlackTemple/boss_illidan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |