fix(Scripts/Karazhan): allow Aran to cast pyroblast also when interrupted (#17375)

* initial

* add scheduling
This commit is contained in:
Dan
2023-09-28 00:31:08 +02:00
committed by GitHub
parent e9b888fda7
commit f44e658342

View File

@@ -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);