From a65bb438a87c3bdda04db19616e554955ac6b5a7 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 14 Aug 2009 19:27:53 -0500 Subject: *Skarvald and Dalronn - Utgarde Keep: To make ghost versions not attackable. By tlexii --HG-- branch : trunk --- .../zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp index f1babbfb9c8..49811125594 100644 --- a/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp +++ b/src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp @@ -130,7 +130,10 @@ struct TRINITY_DLL_DECL boss_skarvald_the_constructorAI : public ScriptedAI //DoCast(m_creature,SPELL_SUMMON_SKARVALD_GHOST,true); Creature* temp = m_creature->SummonCreature(MOB_SKARVALD_GHOST,m_creature->GetPositionX(),m_creature->GetPositionY(),m_creature->GetPositionZ(),0,TEMPSUMMON_CORPSE_DESPAWN,5000); if (temp) + { + temp->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); temp->AI()->AttackStart(Killer); + } } } } @@ -282,7 +285,10 @@ struct TRINITY_DLL_DECL boss_dalronn_the_controllerAI : public ScriptedAI //DoCast(m_creature,SPELL_SUMMON_DALRONN_GHOST,true); Creature* temp = m_creature->SummonCreature(MOB_DALRONN_GHOST,m_creature->GetPositionX(),m_creature->GetPositionY(),m_creature->GetPositionZ(),0,TEMPSUMMON_CORPSE_DESPAWN,5000); if (temp) + { + temp->SetFlag(UNIT_FIELD_FLAGS,UNIT_FLAG_NON_ATTACKABLE); temp->AI()->AttackStart(Killer); + } } } } -- cgit v1.2.3