Skip to content

Instantly share code, notes, and snippets.

@KiriX
Created June 22, 2011 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KiriX/1039636 to your computer and use it in GitHub Desktop.
Save KiriX/1039636 to your computer and use it in GitHub Desktop.
pit of saron FIX
diff --git a/scripts/northrend/icecrown_citadel/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp b/scripts/northrend/icecrown_citadel/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp
index 04f6657..f0740a4 100644
--- a/scripts/northrend/icecrown_citadel/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp
+++ b/scripts/northrend/icecrown_citadel/frozen_halls/pit_of_saron/boss_forgemaster_garfrost.cpp
@@ -83,12 +83,18 @@ struct MANGOS_DLL_DECL boss_forgemaster_garfrostAI : public ScriptedAI
void Aggro(Unit* pWho)
{
+ if (m_pInstance)
+ m_pInstance->SetData(TYPE_GARFROST, IN_PROGRESS);
+
DoScriptText(SAY_AGGRO, m_creature, pWho);
DoCastSpellIfCan(m_creature, SPELL_PERMAFROST);
}
void JustDied(Unit* pKiller)
{
+ if (m_pInstance)
+ m_pInstance->SetData(TYPE_GARFROST, DONE);
+
DoScriptText(SAY_DEATH, m_creature, pKiller);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment