Apply one more time rev 5104 cos its removed by merge

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-08-17 00:37:32 +02:00
parent b08bd25bc5
commit bf13d2d5aa

View File

@@ -852,12 +852,14 @@ void npc_unworthy_initiateAI::UpdateAI(const uint32 diff)
if (!prison)
return;
if (Creature* trigger = me->FindNearestCreature(29521, 30))
prison->ResetDoorOrButton();
if (Creature* anchor = me->FindNearestCreature(29521, 30))
{
prison->ResetDoorOrButton();
trigger->AI()->SetGUID(m_creature->GetGUID());
trigger->CastSpell(me, SPELL_SOUL_PRISON_CHAIN, true);
anchorGUID = trigger->GetGUID();
anchor->GetPosition(targ_x, targ_y, targ_z);
anchor->AI()->SetGUID(m_creature->GetGUID());
anchor->CastSpell(me, SPELL_SOUL_PRISON_CHAIN, true);
anchorGUID = anchor->GetGUID();
}
}
return;