fix(Scripts/Karazhan): allow Aran to cast pyroblast also when interrupted (#17375)
* initial * add scheduling
This commit is contained in:
parent
e9b888fda7
commit
f44e658342
1 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue