diff options
author | megamage <none@none> | 2009-08-14 19:27:53 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-14 19:27:53 -0500 |
commit | a65bb438a87c3bdda04db19616e554955ac6b5a7 (patch) | |
tree | 1cc960329bfc6dcac8dc21ee222770888f9901e1 /src | |
parent | 2fd68eab44c1c0ea02d93ea1b5de47f0880f84ea (diff) |
*Skarvald and Dalronn - Utgarde Keep: To make ghost versions not attackable. By tlexii
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/zone/utgarde_keep/utgarde_keep/boss_skarvald_dalronn.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); + } } } } |