mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Scripts/ZulAman): Dont update Hexlord timers while casting (#20876)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user