fix(Scripts/AuchenaiCrypts): Fix Exarch Maladaar despawning the avata… (#16625)

This commit is contained in:
Skjalf
2023-06-25 13:45:54 -03:00
committed by GitHub
parent d172b3a7e2
commit d1f3e606a2

View File

@@ -74,7 +74,10 @@ struct boss_exarch_maladaar : public BossAI
_Reset();
ScheduleHealthCheckEvent(25, [&] {
Talk(SAY_SUMMON);
DoCastSelf(SPELL_SUMMON_AVATAR);
scheduler.Schedule(100ms, [this](TaskContext)
{
DoCastSelf(SPELL_SUMMON_AVATAR);
});
});
}
@@ -133,6 +136,11 @@ struct boss_exarch_maladaar : public BossAI
_JustDied();
}
void JustSummoned(Creature* /*creature*/) override
{
// Override JustSummoned() so we don't despawn the Avatar.
}
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())