diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/northrend/zuldrak.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/northrend/zuldrak.cpp b/src/bindings/scripts/scripts/northrend/zuldrak.cpp index 66b567b8400..b4ed4db00b2 100644 --- a/src/bindings/scripts/scripts/northrend/zuldrak.cpp +++ b/src/bindings/scripts/scripts/northrend/zuldrak.cpp @@ -745,6 +745,34 @@ CreatureAI* GetAI_npc_yggdras(Creature* pCreature) return new npc_yggdrasAI(pCreature); } +/*#### +## npc_released_offspring_harkoa +####*/ + +struct TRINITY_DLL_DECL npc_released_offspring_harkoaAI : public ScriptedAI +{ + npc_released_offspring_harkoaAI(Creature* pCreature) : ScriptedAI(pCreature) {} + + void Reset() + { + float x, y, z; + m_creature->GetClosePoint(x, y, z, m_creature->GetObjectSize() / 3, 25.0f); + m_creature->GetMotionMaster()->MovePoint(0, x, y, z); + } + + void MovementInform(uint32 uiType, uint32 uiId) + { + if (uiType != POINT_MOTION_TYPE) + return; + m_creature->DisappearAndDie(); + } +}; + +CreatureAI* GetAI_npc_released_offspring_harkoa(Creature* pCreature) +{ + return new npc_released_offspring_harkoaAI(pCreature); +} + void AddSC_zuldrak() { Script *newscript; @@ -785,4 +813,9 @@ void AddSC_zuldrak() newscript->Name = "npc_yggdras"; newscript->GetAI = &GetAI_npc_yggdras; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "npc_released_offspring_harkoa"; + newscript->GetAI = &GetAI_npc_released_offspring_harkoa; + newscript->RegisterSelf(); } |