From 1090b36e3c27b3b784841e7c24d29ba9bf67290f Mon Sep 17 00:00:00 2001 From: insunaa Date: Sun, 6 Oct 2024 15:53:05 +0200 Subject: [PATCH] Hodir: Despawn on Evade --- .../scripts/northrend/ulduar/ulduar/boss_hodir.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/ulduar/ulduar/boss_hodir.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/ulduar/ulduar/boss_hodir.cpp index c3be05bccc5..9ad8204963d 100644 --- a/src/game/AI/ScriptDevAI/scripts/northrend/ulduar/ulduar/boss_hodir.cpp +++ b/src/game/AI/ScriptDevAI/scripts/northrend/ulduar/ulduar/boss_hodir.cpp @@ -165,11 +165,6 @@ struct boss_hodirAI : public BossAI m_creature->RemoveAllAurasOnEvade(); m_creature->CombatStop(true); - if (m_creature->IsAlive() && !m_eventFinished) - m_creature->GetMotionMaster()->MoveTargetedHome(); - - m_creature->SetLootRecipient(nullptr); - const std::vector* tmpHelpers = m_creature->GetMap()->GetCreatures("ULDUAR_HODIR_HELPERS"); if (!tmpHelpers || tmpHelpers->empty()) @@ -180,6 +175,9 @@ struct boss_hodirAI : public BossAI if (!m_eventFinished && helper && helper->IsAlive()) helper->Suicide(); } + + if (m_creature->IsAlive() && !m_eventFinished) + m_creature->ForcedDespawn(30s); } void KilledUnit(Unit* victim) override