diff options
author | WarHead <none@none> | 2009-10-18 08:50:53 +0200 |
---|---|---|
committer | WarHead <none@none> | 2009-10-18 08:50:53 +0200 |
commit | 1e9619a794cf03f271ff64c662cb4e021f1bf4e9 (patch) | |
tree | c67d3e70455cde378f514703efb333f5bd599a8c | |
parent | 567e32a14cf174763778fa11f5c64149df0b9b8f (diff) |
fix: ahn'kahet - prevent elder nadox eggs to attack player
--HG--
branch : trunk
-rw-r--r-- | sql/uwom/6144_world_scripts.sql | 1 | ||||
-rw-r--r-- | src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_elder_nadox.cpp | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/sql/uwom/6144_world_scripts.sql b/sql/uwom/6144_world_scripts.sql new file mode 100644 index 00000000000..72535721bf6 --- /dev/null +++ b/sql/uwom/6144_world_scripts.sql @@ -0,0 +1 @@ +UPDATE `creature_template` SET `ScriptName`='mob_nadox_eggs' WHERE `entry` IN ('30172','30173'); 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(); } |