Permalink
Browse files

[c3138] Fix bug for Algalon for the case when the grid unloads

Thanks to @Ulduar

(based on commit [3138] - 136e323)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information...
xfurry committed Jul 19, 2015
1 parent 8a6ff2d commit 42f7a7b568dd6c3b4e18447124a1a81edcff3c5c
Showing with 5 additions and 1 deletion.
  1. +4 −0 scripts/northrend/ulduar/ulduar/boss_algalon.cpp
  2. +1 −1 sd2_revision_nr.h
@@ -190,6 +190,7 @@ struct boss_algalonAI : public ScriptedAI, private DialogueHelper
m_pInstance = (instance_ulduar*)pCreature->GetInstanceData();
m_bIsRegularMode = pCreature->GetMap()->IsRegularDifficulty();
InitializeDialogueHelper(m_pInstance);
m_creature->SetActiveObjectState(true);
m_bEventFinished = false;
Reset();
@@ -307,7 +308,10 @@ struct boss_algalonAI : public ScriptedAI, private DialogueHelper
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
else
{
m_pInstance->SetData(TYPE_ALGALON, FAIL);
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
}
// despawn everything
for (GuidList::const_iterator itr = m_lSummonedGuids.begin(); itr != m_lSummonedGuids.end(); ++itr)
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_NR_H__
#define __SD2_REVISION_NR_H__
#define SD2_REVISION_NR "3137"
#define SD2_REVISION_NR "3138"
#endif // __SD2_REVISION_NR_H__

0 comments on commit 42f7a7b

Please sign in to comment.