From e4869976f1dd0126ad772a4b1392f0143977b203 Mon Sep 17 00:00:00 2001 From: Ryan Turner <16946913+TheSCREWEDSoftware@users.noreply.github.com> Date: Sun, 30 Nov 2025 19:52:08 +0000 Subject: [PATCH] fix(DB/Loot) - Adjusted loot for Corrupted Kor Gem (#23951) Co-authored-by: FlyingArowana --- .../rev_1764364508465521600.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1764364508465521600.sql diff --git a/data/sql/updates/pending_db_world/rev_1764364508465521600.sql b/data/sql/updates/pending_db_world/rev_1764364508465521600.sql new file mode 100644 index 0000000000..ee5939b44f --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1764364508465521600.sql @@ -0,0 +1,17 @@ +SET @ITEM = 6995; +SET @ENTRY = 1055; + +-- Creates a reference loot for "Corrupted Kor Gem" +DELETE FROM `reference_loot_template` WHERE `Entry` = @ENTRY AND `Item` = @ITEM; +INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(@ENTRY, @ITEM, 0, 100, 1, 1, 1, 1, 1, 'Corrupted Kor Gem'); + +-- Deletes "Corrupted Kor Gem" from every creature's loot +DELETE FROM `creature_loot_template` WHERE `item` = @ITEM; + +-- Adds reference loot for "Corrupted Kor Gem" for each creature below +DELETE FROM `creature_loot_template` WHERE `Reference` = @ENTRY AND `Entry` IN (4802, 4803, 4805); +INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(4802, @ITEM, @ENTRY, 80, 0, 1, 0, 1, 1, 'Blackfathom Tide Priestess - Corrupted Kor Gem'), +(4803, @ITEM, @ENTRY, 80, 0, 1, 0, 1, 1, 'Blackfathom Oracle - Corrupted Kor Gem'), +(4805, @ITEM, @ENTRY, 80, 0, 1, 0, 1, 1, 'Blackfathom Sea Witch - Corrupted Kor Gem');