From f44e658342f727d1ed5034657c74128724d7cd28 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Thu, 28 Sep 2023 00:31:08 +0200 Subject: [PATCH] fix(Scripts/Karazhan): allow Aran to cast pyroblast also when interrupted (#17375) * initial * add scheduling --- .../EasternKingdoms/Karazhan/boss_shade_of_aran.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp index df45f50f1..7d7239de8 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_shade_of_aran.cpp @@ -382,9 +382,14 @@ struct boss_shade_of_aran : public BossAI me->SetReactState(REACT_AGGRESSIVE); me->SetPower(POWER_MANA, me->GetMaxPower(POWER_MANA) - 32000); DoCastSelf(SPELL_POTION, false); - DoCastSelf(SPELL_AOE_PYROBLAST, false); _drinkScheduler.CancelGroup(GROUP_DRINKING); - _drinking = false; + _drinkScheduler.Schedule(1s, [this](TaskContext) + { + DoCastSelf(SPELL_AOE_PYROBLAST, false); + }).Schedule(3s, [this](TaskContext) + { + _drinking = false; + }); } else { context.Repeat(500ms);