fix(Scripts/ZulAman): Dont update Hexlord timers while casting (#20876)
This commit is contained in:
parent
a476287ff5
commit
7a66008429
1 changed files with 9 additions and 3 deletions
|
|
@ -229,7 +229,13 @@ static PlayerAbilityStruct PlayerAbility[13][3] =
|
|||
|
||||
struct boss_hexlord_malacrass : public BossAI
|
||||
{
|
||||
boss_hexlord_malacrass(Creature* creature) : BossAI(creature, DATA_HEXLORD) { }
|
||||
boss_hexlord_malacrass(Creature* creature) : BossAI(creature, DATA_HEXLORD)
|
||||
{
|
||||
scheduler.SetValidator([this]
|
||||
{
|
||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
||||
});
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
|
|
@ -238,10 +244,10 @@ struct boss_hexlord_malacrass : public BossAI
|
|||
_classAbilityTimer = 10000ms;
|
||||
SpawnAdds();
|
||||
ScheduleHealthCheckEvent(80, [&] {
|
||||
ScheduleTimedEvent(0s, [&] {
|
||||
ScheduleTimedEvent(1s, [&] {
|
||||
DoCastSelf(SPELL_DRAIN_POWER, true);
|
||||
Talk(SAY_DRAIN_POWER);
|
||||
}, 30s, 30s);
|
||||
}, 30s);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue