diff options
author | offl <offl@users.noreply.github.com> | 2020-07-08 17:37:05 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-21 22:21:43 +0100 |
commit | fb6a72aa2d53ba3af15e9f02901e7b8dffaf82ba (patch) | |
tree | 2059d0badfea33787078bb571a4616f70630aed3 /src | |
parent | afc36f6079fd78206b4b9d5ab743701ee7299478 (diff) |
DB/Quest: Convert & update support for 'Khu'nok Will Know' to SAI
Closes #24933
(cherry picked from commit c6811d3e4e2f21789f619eff51936796e4cb669f)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/zone_borean_tundra.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp index 991c63a7754..40e0d4231db 100644 --- a/src/server/scripts/Northrend/zone_borean_tundra.cpp +++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp @@ -34,53 +34,6 @@ #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 ######*/ @@ -2294,7 +2247,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); |