From 839ce689d8da10e8d0229eb82d499d70b44d05aa Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 28 Dec 2022 12:12:37 +0100 Subject: [PATCH] loot: only call LootSlot in vanilla clients This part heavily relies on loot slot limitations in vanilla that only allow to autoloot when an item was already clicked. Without those limitations present in TBC, it had the side-effect, that everything was auto-looted even without confirmation. --- modules/loot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/loot.lua b/modules/loot.lua index d35e3ee7..edade5ee 100644 --- a/modules/loot.lua +++ b/modules/loot.lua @@ -714,7 +714,7 @@ pfUI:RegisterModule("loot", "vanilla:tbc", function () if event == "LOOT_BIND_CONFIRM" then LootSlot(arg1) StaticPopup1Button1:Click() - elseif event == "LOOT_OPENED" then + elseif event == "LOOT_OPENED" and pfUI.client <= 11200 then for i=1,GetNumLootItems() do LootSlot(i) end