From ee22273ef4d75a727902b7f80b646bd26bfd6bce Mon Sep 17 00:00:00 2001 From: tartalo Date: Fri, 23 Oct 2009 17:53:34 +0200 Subject: Fix Drakkari Colossus event, by Manuel --HG-- branch : trunk --- .../scripts/scripts/northrend/gundrak/boss_drakkari_colossus.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bindings/scripts/scripts/northrend/gundrak/boss_drakkari_colossus.cpp b/src/bindings/scripts/scripts/northrend/gundrak/boss_drakkari_colossus.cpp index 3b06768be56..d45ac9a8623 100644 --- a/src/bindings/scripts/scripts/northrend/gundrak/boss_drakkari_colossus.cpp +++ b/src/bindings/scripts/scripts/northrend/gundrak/boss_drakkari_colossus.cpp @@ -20,7 +20,7 @@ SDName: Boss Drakkari Colossus SDAuthor: Manuel SD%Complete: 95 % -SDComment: The event with the Living Mojos is not implemented, just is done that when one of the mojos around the boss take damage will make that the boss enter in combat! +SDComment: The event with the Living Mojos is not implemented, just is done that when one of the mojos around the boss take damage will make the boss enter in combat! SDCategory: Script Data End */ @@ -49,7 +49,6 @@ enum Spells enum Entries { DRAKKARI_COLOSSUS = 29307, - //DRAKKARI_ELEMENTAL = 29573 }; struct TRINITY_DLL_DECL boss_drakkari_colossusAI : public ScriptedAI @@ -71,6 +70,9 @@ struct TRINITY_DLL_DECL boss_drakkari_colossusAI : public ScriptedAI if (pInstance) pInstance->SetData(DATA_DRAKKARI_COLOSSUS_EVENT, NOT_STARTED); + if(!m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE)) + m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE); + m_creature->clearUnitState(UNIT_STAT_STUNNED); m_creature->SetReactState(REACT_PASSIVE); @@ -222,6 +224,7 @@ struct TRINITY_DLL_DECL boss_drakkari_elementalAI : public ScriptedAI void JustDied(Unit* killer) { Colossus->Kill(Colossus); + Colossus->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); } }; -- cgit v1.2.3