From e25c73978ae8bab1060de05df7858b6633f2471e Mon Sep 17 00:00:00 2001 From: tobmaps Date: Wed, 1 Jun 2011 01:58:32 +0700 Subject: [PATCH] Core/Spells: Drop dead code and fix some SQL updates --- .../world/2011_05_30_04_world_creature_template_addon.sql | 1 + .../world/2011_05_31_00_world_spell_script_names.sql | 3 ++- src/server/game/Spells/Auras/SpellAuras.cpp | 8 -------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/sql/updates/world/2011_05_30_04_world_creature_template_addon.sql b/sql/updates/world/2011_05_30_04_world_creature_template_addon.sql index 1caf62bae1..c0ab35854b 100644 --- a/sql/updates/world/2011_05_30_04_world_creature_template_addon.sql +++ b/sql/updates/world/2011_05_30_04_world_creature_template_addon.sql @@ -1 +1,2 @@ +DELETE FROM `creature_template_addon` WHERE `entry` = 15224; INSERT INTO `creature_template_addon` (`entry`,`auras`) VALUES (15224, '24777'); diff --git a/sql/updates/world/2011_05_31_00_world_spell_script_names.sql b/sql/updates/world/2011_05_31_00_world_spell_script_names.sql index 4a30f72473..56ddf324be 100644 --- a/sql/updates/world/2011_05_31_00_world_spell_script_names.sql +++ b/sql/updates/world/2011_05_31_00_world_spell_script_names.sql @@ -1 +1,2 @@ -INSERT INTO `spell_script_names`(`spell_id`, `ScriptName`) VALUES ('24778', 'spell_dream_fog_sleep'); +DELETE FROM `spell_script_names` WHERE `spell_id` = 24778; +INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES (24778, 'spell_dream_fog_sleep'); diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 44c5aa53fe..c89cd867db 100755 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -1401,14 +1401,6 @@ void Aura::HandleAuraSpecificMods(AuraApplication const * aurApp, Unit * caster, // aura removed - remove death runes target->ToPlayer()->RemoveRunesByAuraEffect(GetEffect(0)); } - switch(GetId()) - { - case 50514: // Summon Gargoyle - if (removeMode != AURA_REMOVE_BY_EXPIRE) - break; - target->CastSpell(target, GetEffect(0)->GetAmount(), true, NULL, GetEffect(0)); - break; - } break; case SPELLFAMILY_HUNTER: // Glyph of Freezing Trap