Skip to content

Commit

Permalink
HallowsEnd: Fix head of horseman not despawning on fail or win
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 8, 2021
1 parent 589e046 commit 2936ce7
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -207,12 +207,16 @@ struct boss_headless_horsemanAI : public ScriptedAI
void JustDied(Unit* /*pKiller*/) override
{
DoScriptText(SAY_DEATH, m_creature);
if (Creature* head = m_creature->GetMap()->GetCreature(m_headGuid))
head->ForcedDespawn();
}

void JustReachedHome() override
{
// cleanup
m_creature->ForcedDespawn();
if (Creature* head = m_creature->GetMap()->GetCreature(m_headGuid))
head->ForcedDespawn();
}

void JustRespawned() override
Expand Down

0 comments on commit 2936ce7

Please sign in to comment.