Skip to content

Commit

Permalink
[2281] Fix a reset bug for DK-Initiate (quest 12848)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmoozerd committed Sep 13, 2011
1 parent b840949 commit 0288f8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion scripts/eastern_kingdoms/scarlet_enclave/ebon_hold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ struct MANGOS_DLL_DECL npc_unworthy_initiateAI : public ScriptedAI
if (m_creature->getFaction() != m_uiNormFaction)
m_creature->setFaction(m_uiNormFaction);

m_myAnchorGuid.Clear();
m_uiAnchorCheckTimer = 5000;
m_uiPhase = PHASE_INACTIVE_OR_COMBAT;
m_uiPhaseTimer = 7500;
Expand All @@ -975,6 +974,12 @@ struct MANGOS_DLL_DECL npc_unworthy_initiateAI : public ScriptedAI
void JustReachedHome()
{
SetAnchor();

if (Creature* pAnchor = GetAnchor())
{
if (npc_unworthy_initiate_anchorAI* pAnchorAI = dynamic_cast<npc_unworthy_initiate_anchorAI*>(pAnchor->AI()))
pAnchorAI->ResetPrison();
}
}

void JustRespawned()
Expand Down
2 changes: 1 addition & 1 deletion sd2_revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_NR_H__
#define __SD2_REVISION_NR_H__
#define SD2_REVISION_NR "2280"
#define SD2_REVISION_NR "2281"
#endif // __SD2_REVISION_NR_H__

0 comments on commit 0288f8d

Please sign in to comment.