Skip to content

Commit

Permalink
Fix Detect Magic to have one debuff per caster. (#2609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daribon authored May 10, 2024
1 parent b2dfa37 commit 2c84b4d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sql/migrations/20240504222324_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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`='20240504222324');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20240504222324');
-- Add your query below.


-- Fix Detect Magic to have one debuff per caster
UPDATE `spell_template` SET `customFlags`=4096 WHERE `entry`=2855;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;

0 comments on commit 2c84b4d

Please sign in to comment.