From 578ac1c5ae05d444fa630cdeed0ab85a98e86f50 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Sun, 12 May 2024 12:13:46 +0300 Subject: [PATCH] Fix Blackwing Technician loot exploit. --- sql/migrations/20240512091319_world.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sql/migrations/20240512091319_world.sql diff --git a/sql/migrations/20240512091319_world.sql b/sql/migrations/20240512091319_world.sql new file mode 100644 index 00000000000..7456ae33adf --- /dev/null +++ b/sql/migrations/20240512091319_world.sql @@ -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`='20240512091319'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20240512091319'); +-- Add your query below. + + +-- Fix Blackwing Technician loot exploit. +UPDATE `creature_groups` SET `flags`=6 WHERE `leader_guid` IN (59768, 59771, 84542, 84557, 84558, 84625, 84840, 300979, 300980); + + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;