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.
This commit is contained in:
shagu
2022-12-28 12:12:37 +01:00
parent 7d343e30cf
commit 839ce689d8
+1 -1
View File
@@ -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