From e75505d071f2e053a3c2782dbd72142a7dfd7581 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Mon, 3 Feb 2025 08:54:19 -0300 Subject: [PATCH] fix(Scripts/SunwellPlateau): Remove Sunwell Radiance from mobs (#21312) --- .../updates/pending_db_world/rev_1738513021010110800.sql | 2 ++ .../SunwellPlateau/instance_sunwell_plateau.cpp | 8 -------- .../EasternKingdoms/SunwellPlateau/sunwell_plateau.h | 5 ----- 3 files changed, 2 insertions(+), 13 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1738513021010110800.sql diff --git a/data/sql/updates/pending_db_world/rev_1738513021010110800.sql b/data/sql/updates/pending_db_world/rev_1738513021010110800.sql new file mode 100644 index 000000000..bef37705a --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1738513021010110800.sql @@ -0,0 +1,2 @@ +-- +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 25485) AND (`source_type` = 0) AND (`id` IN (0)); diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp index 2201e5160..a37aa61c4 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/instance_sunwell_plateau.cpp @@ -96,14 +96,6 @@ public: if (GameObject* gobj = GetGameObject(DATA_ICEBARRIER)) gobj->SendUpdateToPlayer(player); } - - void OnCreatureCreate(Creature* creature) override - { - if (creature->GetSpawnId() > 0 || !creature->GetOwnerGUID().IsPlayer()) - creature->CastSpell(creature, SPELL_SUNWELL_RADIANCE, true); - - InstanceScript::OnCreatureCreate(creature); - } }; InstanceScript* GetInstanceScript(InstanceMap* map) const override diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/sunwell_plateau.h b/src/server/scripts/EasternKingdoms/SunwellPlateau/sunwell_plateau.h index e40dfc057..83f8705a4 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/sunwell_plateau.h +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/sunwell_plateau.h @@ -106,11 +106,6 @@ enum GameObjectIds GO_ORB_OF_THE_BLUE_DRAGONFLIGHT4 = 188116 }; -enum SpellIds -{ - SPELL_SUNWELL_RADIANCE = 45769, -}; - template inline AI* GetSunwellPlateauAI(T* obj) {