mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Apply one more time rev 5104 cos its removed by merge
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user