fix(DB/Loot) - Correct who should or not drop Pattern: Robes of Arcana (#23916)

Co-authored-by: FlyingArowana <TheSCREWEDSoftware@users.noreply.github.com>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ryan Turner 2026-03-20 00:04:31 +00:00 committed by GitHub
parent e5746fbc89
commit 965229ae01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,20 @@
SET @ITEM = 5773;
SET @ENTRY = 1054;
-- Deletes "Pattern: Robes of Arcana" from Reference Loot #24704
DELETE FROM `reference_loot_template` WHERE `Entry` = 24704 AND `Item` = @ITEM;
-- Creates a reference loot for "Pattern: Robes of Arcana"
DELETE FROM `reference_loot_template` WHERE `Entry` = @ENTRY;
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(@ENTRY, @ITEM, 0, 100, 0, 1, 1, 1, 1, 'Pattern: Robes of Arcana');
-- Deletes "Pattern: Robes of Arcana" from Defias Enchnater, Dark Strand Voidcaller and Grimtotem Geomancer
DELETE FROM `creature_loot_template` WHERE `item` = @ITEM AND `Entry` IN (910, 2337, 10760);
-- Adds reference loot for "Pattern: Robes of Arcana" for each creature below
DELETE FROM `creature_loot_template` WHERE `Reference` = @ENTRY AND `Entry` IN (910, 2337, 10760);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(910, @ITEM, @ENTRY, 2, 0, 1, 0, 1, 1, 'Defias Enchanter - Pattern: Robes of Arcana'),
(2337, @ITEM, @ENTRY, 2, 0, 1, 0, 1, 1, 'Dark Strand Voidcaller - Pattern: Robes of Arcana'),
(10760, @ITEM, @ENTRY, 2, 0, 1, 0, 1, 1, 'Grimtotem Geomancer - Pattern: Robes of Arcana');