fix(Scripts/ZulAman): Dont update Hexlord timers while casting (#20876)

This commit is contained in:
Andrew
2024-12-10 18:27:22 -03:00
committed by GitHub
parent a476287ff5
commit 7a66008429

View File

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