mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Scripts/Ulduar: Attempt to fix Yogg-Saron not evading on wipe (#24055)
This commit is contained in:
@@ -541,6 +541,9 @@ class boss_voice_of_yogg_saron : public CreatureScript
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
if (!me->GetCombatManager().HasPvECombatWithPlayers())
|
||||
EnterEvadeMode(EVADE_REASON_NO_HOSTILES);
|
||||
|
||||
events.Update(diff);
|
||||
// don't summon tentacles when illusion is shattered, delay them
|
||||
if (_illusionShattered)
|
||||
@@ -769,6 +772,14 @@ class boss_sara : public CreatureScript
|
||||
_events.ScheduleEvent(EVENT_SARAS_ANGER, urand(15000, 25000), 0, PHASE_ONE);
|
||||
}
|
||||
|
||||
void JustEnteredCombat(Unit* who) override
|
||||
{
|
||||
if (IsEngaged())
|
||||
return;
|
||||
|
||||
EngagementStart(who);
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
me->RemoveAllAuras();
|
||||
@@ -1607,8 +1618,13 @@ class npc_yogg_saron_keeper : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
void JustEnteredCombat(Unit* who) override
|
||||
{
|
||||
if (IsEngaged())
|
||||
return;
|
||||
|
||||
EngagementStart(who);
|
||||
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
case NPC_FREYA_YS:
|
||||
|
||||
Reference in New Issue
Block a user