Skip to content

Commit

Permalink
Hodir: Despawn on Evade
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Oct 6, 2024
1 parent ee21ebe commit 1090b36
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Creature*>* tmpHelpers = m_creature->GetMap()->GetCreatures("ULDUAR_HODIR_HELPERS");

if (!tmpHelpers || tmpHelpers->empty())
Expand All @@ -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
Expand Down

0 comments on commit 1090b36

Please sign in to comment.