From c6811d3e4e2f21789f619eff51936796e4cb669f Mon Sep 17 00:00:00 2001 From: offl Date: Wed, 8 Jul 2020 17:37:05 +0200 Subject: DB/Quest: Convert & update support for 'Khu'nok Will Know' to SAI Closes #24933 --- .../scripts/Northrend/zone_borean_tundra.cpp | 48 ---------------------- 1 file changed, 48 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp index ba312374f57..9854162c140 100644 --- a/src/server/scripts/Northrend/zone_borean_tundra.cpp +++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp @@ -32,53 +32,6 @@ #include "TemporarySummon.h" #include "WorldSession.h" -/*###### -## npc_khunok_the_behemoth -######*/ - -enum Khunok -{ - NPC_ORPHANED_MAMMOTH_CALF = 25861, - SPELL_MAMMOTH_CALF_ESCORT_CREDIT = 46231 -}; - -class npc_khunok_the_behemoth : public CreatureScript -{ -public: - npc_khunok_the_behemoth() : CreatureScript("npc_khunok_the_behemoth") { } - - struct npc_khunok_the_behemothAI : public ScriptedAI - { - npc_khunok_the_behemothAI(Creature* creature) : ScriptedAI(creature) { } - - void MoveInLineOfSight(Unit* who) override - - { - ScriptedAI::MoveInLineOfSight(who); - - if (who->GetTypeId() != TYPEID_UNIT) - return; - - if (who->GetEntry() == NPC_ORPHANED_MAMMOTH_CALF && me->IsWithinDistInMap(who, 10.0f)) - { - if (Unit* owner = who->GetOwner()) - { - if (owner->GetTypeId() == TYPEID_PLAYER) - { - owner->CastSpell(owner, SPELL_MAMMOTH_CALF_ESCORT_CREDIT, true); - who->ToCreature()->DespawnOrUnsummon(); - } - } - } - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_khunok_the_behemothAI(creature); - } -}; - /*###### ## npc_corastrasza ######*/ @@ -2295,7 +2248,6 @@ class spell_q11653_shortening_blaster : public SpellScript void AddSC_borean_tundra() { - new npc_khunok_the_behemoth(); new npc_corastrasza(); new npc_nerubar_victim(); RegisterSpellScript(spell_q11865_place_fake_fur); -- cgit v1.2.3