From c3368fd5fc24dd589f8b4c737006db21ed9c4fa3 Mon Sep 17 00:00:00 2001 From: offl <11556157+offl@users.noreply.github.com> Date: Sat, 18 Dec 2021 19:30:35 +0200 Subject: Scripts/Quest: Rework 'The Cleansing' (11317,11322) (#27413) (cherry picked from commit a8464d34bb0f77e0d616e6f21aaf7d7a79276180) --- src/server/scripts/World/go_scripts.cpp | 43 --------------------------------- 1 file changed, 43 deletions(-) (limited to 'src/server/scripts/World') diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index bb5f8fe4629..6c54b193ff8 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -564,48 +564,6 @@ class go_veil_skith_cage : public GameObjectScript } }; -/*###### -## go_frostblade_shrine -######*/ - -enum TheCleansing -{ - QUEST_THE_CLEANSING_HORDE = 11317, - QUEST_THE_CLEANSING_ALLIANCE = 11322, - SPELL_CLEANSING_SOUL = 43351, - SPELL_RECENT_MEDITATION = 61720, -}; - -class go_frostblade_shrine : public GameObjectScript -{ -public: - go_frostblade_shrine() : GameObjectScript("go_frostblade_shrine") { } - - struct go_frostblade_shrineAI : public GameObjectAI - { - go_frostblade_shrineAI(GameObject* go) : GameObjectAI(go) { } - - bool OnGossipHello(Player* player) override - { - me->UseDoorOrButton(10); - if (!player->HasAura(SPELL_RECENT_MEDITATION)) - { - if (player->GetQuestStatus(QUEST_THE_CLEANSING_HORDE) == QUEST_STATUS_INCOMPLETE || player->GetQuestStatus(QUEST_THE_CLEANSING_ALLIANCE) == QUEST_STATUS_INCOMPLETE) - { - player->CastSpell(player, SPELL_CLEANSING_SOUL); - player->SetStandState(UNIT_STAND_STATE_SIT); - } - } - return true; - } - }; - - GameObjectAI* GetAI(GameObject* go) const override - { - return new go_frostblade_shrineAI(go); - } -}; - /*###### ## go_midsummer_bonfire ######*/ @@ -1195,7 +1153,6 @@ void AddSC_go_scripts() new go_amberpine_outhouse(); new go_massive_seaforium_charge(); new go_veil_skith_cage(); - new go_frostblade_shrine(); new go_midsummer_bonfire(); new go_midsummer_ribbon_pole(); new go_brewfest_music(); -- cgit v1.2.3