Skip to content

Commit

Permalink
fix(Scripts/ZulAman): Hex Lord Malacrass' Drain Power Timer (azerothc…
Browse files Browse the repository at this point in the history
…ore#20754)

* Initial Fix for azerothcore#20751

* Tighten timings

* Condense Code

* Move `ScheduleHealthCheckEvent` into `Reset()`
  • Loading branch information
SubstituteR authored Nov 28, 2024
1 parent b5be6bc commit dd3eb38
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit dd3eb38

Please sign in to comment.