aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortartalo <none@none>2009-10-23 17:53:34 +0200
committertartalo <none@none>2009-10-23 17:53:34 +0200
commitee22273ef4d75a727902b7f80b646bd26bfd6bce (patch)
treeb705d96240f3844ce3db051312ed6df6a04d092c
parent803da775f41dc09b762c6cd0e4a7b89bdac72226 (diff)
Fix Drakkari Colossus event, by Manuel
--HG-- branch : trunk
-rw-r--r--src/bindings/scripts/scripts/northrend/gundrak/boss_drakkari_colossus.cpp7
1 files changed, 5 insertions, 2 deletions
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);
}
};