Skip to content

Commit

Permalink
Fix infinite Crimson Hammersmiths exploit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Dec 3, 2024
1 parent 72b4cc7 commit 972f9dd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sql/migrations/20241203184305_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`='20241203184305');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20241203184305');
-- Add your query below.


-- Fixed an exploit that allowed you to summon infinite Crimson Hammersmiths from the Blacksmithing Plans in Stratholme.
DELETE FROM `gameobject_scripts` WHERE `id`=42888;


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

0 comments on commit 972f9dd

Please sign in to comment.