fix(Scripts/ZulAman): Hex Lord Malacrass' Drain Power Timer (#20754)
* Initial Fix for #20751 * Tighten timings * Condense Code * Move `ScheduleHealthCheckEvent` into `Reset()`
This commit is contained in:
@@ -236,6 +236,12 @@ struct boss_hexlord_malacrass : public BossAI
|
|||||||
_currentClass = CLASS_NONE;
|
_currentClass = CLASS_NONE;
|
||||||
_classAbilityTimer = 10000ms;
|
_classAbilityTimer = 10000ms;
|
||||||
SpawnAdds();
|
SpawnAdds();
|
||||||
|
ScheduleHealthCheckEvent(80, [&] {
|
||||||
|
ScheduleTimedEvent(0s, [&] {
|
||||||
|
DoCastSelf(SPELL_DRAIN_POWER, true);
|
||||||
|
Talk(SAY_DRAIN_POWER);
|
||||||
|
}, 30s, 30s);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpawnAdds()
|
void SpawnAdds()
|
||||||
@@ -257,10 +263,6 @@ struct boss_hexlord_malacrass : public BossAI
|
|||||||
add->SetInCombatWithZone();
|
add->SetInCombatWithZone();
|
||||||
});
|
});
|
||||||
|
|
||||||
ScheduleTimedEvent(60s, [&]{
|
|
||||||
DoCastSelf(SPELL_DRAIN_POWER, true);
|
|
||||||
Talk(SAY_DRAIN_POWER);
|
|
||||||
}, 40s, 55s);
|
|
||||||
ScheduleTimedEvent(30s, [&]{
|
ScheduleTimedEvent(30s, [&]{
|
||||||
DoCastSelf(SPELL_SPIRIT_BOLTS);
|
DoCastSelf(SPELL_SPIRIT_BOLTS);
|
||||||
scheduler.Schedule(10s, [this](TaskContext)
|
scheduler.Schedule(10s, [this](TaskContext)
|
||||||
|
|||||||
Reference in New Issue
Block a user