aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWarHead <none@none>2009-10-18 08:50:53 +0200
committerWarHead <none@none>2009-10-18 08:50:53 +0200
commit1e9619a794cf03f271ff64c662cb4e021f1bf4e9 (patch)
treec67d3e70455cde378f514703efb333f5bd599a8c /src
parent567e32a14cf174763778fa11f5c64149df0b9b8f (diff)
fix: ahn'kahet - prevent elder nadox eggs to attack player
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp
index 0621aa34844..65bab5333b5 100644
--- a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp
+++ b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp
@@ -246,11 +246,30 @@ struct TRINITY_DLL_DECL mob_ahnkahar_nerubianAI : public ScriptedAI
}
};
+struct MANGOS_DLL_DECL mob_nadox_eggsAI : public Scripted_NoMovementAI
+{
+ mob_nadox_eggsAI(Creature* c) : Scripted_NoMovementAI(c)
+ {
+ c->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
+ c->UpdateAllStats();
+ }
+ void Reset() { }
+ void EnterCombat(Unit* who) { }
+ void AttackStart(Unit* victim) { }
+ void MoveInLineOfSight(Unit* who) { }
+ void UpdateAI(const uint32 diff) { }
+};
+
CreatureAI* GetAI_mob_ahnkahar_nerubian(Creature* pCreature)
{
return new mob_ahnkahar_nerubianAI(pCreature);
}
+CreatureAI* GetAI_mob_nadox_eggs(Creature* _Creature)
+{
+ return new mob_nadox_eggsAI(_Creature);
+}
+
void AddSC_boss_elder_nadox()
{
Script *newscript;
@@ -264,4 +283,9 @@ void AddSC_boss_elder_nadox()
newscript->Name = "mob_ahnkahar_nerubian";
newscript->GetAI = &GetAI_mob_ahnkahar_nerubian;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name="mob_nadox_eggs";
+ newscript->GetAI = &GetAI_mob_nadox_eggs;
+ newscript->RegisterSelf();
}