Files
moonwell-core-vanilla/sql/migrations/20220703103742_world.sql
2022-07-03 14:28:30 +03:00

27 lines
894 B
SQL

DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20220703103742');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20220703103742');
-- Add your query below.
-- Elemental Devastation only triggers from Lightning Bolt, Chain Lightning, and Shock spells.
-- It does not trigger from Flametongue Weapon and Frostbrand weapon or non-Shamman spells.
-- https://classic.wowhead.com/spell=29180/elemental-devastation#comments
UPDATE `spell_proc_event` SET `SpellFamilyName`=11, `SpellFamilyMask0`=2416967683 WHERE `entry`=30160;
-- Remove spell mods preventing item effects from triggering procs.
DELETE FROM `spell_mod` WHERE `Id` IN (7712, 7714, 15239, 16614);
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;