mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
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;
|
||||
_classAbilityTimer = 10000ms;
|
||||
SpawnAdds();
|
||||
ScheduleHealthCheckEvent(80, [&] {
|
||||
ScheduleTimedEvent(0s, [&] {
|
||||
DoCastSelf(SPELL_DRAIN_POWER, true);
|
||||
Talk(SAY_DRAIN_POWER);
|
||||
}, 30s, 30s);
|
||||
});
|
||||
}
|
||||
|
||||
void SpawnAdds()
|
||||
@@ -257,10 +263,6 @@ struct boss_hexlord_malacrass : public BossAI
|
||||
add->SetInCombatWithZone();
|
||||
});
|
||||
|
||||
ScheduleTimedEvent(60s, [&]{
|
||||
DoCastSelf(SPELL_DRAIN_POWER, true);
|
||||
Talk(SAY_DRAIN_POWER);
|
||||
}, 40s, 55s);
|
||||
ScheduleTimedEvent(30s, [&]{
|
||||
DoCastSelf(SPELL_SPIRIT_BOLTS);
|
||||
scheduler.Schedule(10s, [this](TaskContext)
|
||||
|
||||
Reference in New Issue
Block a user