From 87ec00fe61966ae33666dbb682372d9e67ad00f5 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Mon, 23 Jan 2023 09:12:01 +0200 Subject: [PATCH] Change faction of Ritual Candle Aura trap. Closes https://github.com/vmangos/core/pull/1773 --- sql/migrations/20230123070823_world.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sql/migrations/20230123070823_world.sql diff --git a/sql/migrations/20230123070823_world.sql b/sql/migrations/20230123070823_world.sql new file mode 100644 index 000000000..84dd98ec9 --- /dev/null +++ b/sql/migrations/20230123070823_world.sql @@ -0,0 +1,22 @@ +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`='20230123070823'); +IF v=0 THEN +INSERT INTO `migrations` VALUES ('20230123070823'); +-- Add your query below. + + +-- Change faction of Ritual Candle Aura to one that is hostile to mobs but friendly to players. +-- This is a server side trap, so it's not sniffable, and true faction is unknown. +UPDATE `gameobject_template` SET `faction`=250 WHERE `entry`=179688; + + +-- End of migration. +END IF; +END?? +delimiter ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;