From d1f3e606a21dd47c9a1be48d61a01411f531832d Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:45:54 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/AuchenaiCrypts):=20Fix=20Exarch=20M?= =?UTF-8?q?aladaar=20despawning=20the=20avata=E2=80=A6=20(#16625)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp b/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp index 546210c2a..fc6253e80 100644 --- a/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp +++ b/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp @@ -74,7 +74,10 @@ struct boss_exarch_maladaar : public BossAI _Reset(); ScheduleHealthCheckEvent(25, [&] { Talk(SAY_SUMMON); - DoCastSelf(SPELL_SUMMON_AVATAR); + scheduler.Schedule(100ms, [this](TaskContext) + { + DoCastSelf(SPELL_SUMMON_AVATAR); + }); }); } @@ -133,6 +136,11 @@ struct boss_exarch_maladaar : public BossAI _JustDied(); } + void JustSummoned(Creature* /*creature*/) override + { + // Override JustSummoned() so we don't despawn the Avatar. + } + void UpdateAI(uint32 diff) override { if (!UpdateVictim())