fix(Scripts/Karazhan): allow Aran to cast pyroblast also when interrupted (#17375)
* initial * add scheduling
This commit is contained in:
@@ -382,9 +382,14 @@ struct boss_shade_of_aran : public BossAI
|
|||||||
me->SetReactState(REACT_AGGRESSIVE);
|
me->SetReactState(REACT_AGGRESSIVE);
|
||||||
me->SetPower(POWER_MANA, me->GetMaxPower(POWER_MANA) - 32000);
|
me->SetPower(POWER_MANA, me->GetMaxPower(POWER_MANA) - 32000);
|
||||||
DoCastSelf(SPELL_POTION, false);
|
DoCastSelf(SPELL_POTION, false);
|
||||||
DoCastSelf(SPELL_AOE_PYROBLAST, false);
|
|
||||||
_drinkScheduler.CancelGroup(GROUP_DRINKING);
|
_drinkScheduler.CancelGroup(GROUP_DRINKING);
|
||||||
_drinking = false;
|
_drinkScheduler.Schedule(1s, [this](TaskContext)
|
||||||
|
{
|
||||||
|
DoCastSelf(SPELL_AOE_PYROBLAST, false);
|
||||||
|
}).Schedule(3s, [this](TaskContext)
|
||||||
|
{
|
||||||
|
_drinking = false;
|
||||||
|
});
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
context.Repeat(500ms);
|
context.Repeat(500ms);
|
||||||
|
|||||||
Reference in New Issue
Block a user