From 3f1a5351dcd407eb71ba6f6088f5f8b2cab49542 Mon Sep 17 00:00:00 2001 From: ckaotik Date: Sat, 13 Mar 2010 18:07:47 +0100 Subject: [PATCH] <= ~= >= --- lootmanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lootmanager.lua b/lootmanager.lua index c5b3bdc..5b6db94 100644 --- a/lootmanager.lua +++ b/lootmanager.lua @@ -385,7 +385,7 @@ function BrokerGarbage:SelectiveLooting(autoloot) local inBags = mod(GetItemCount(itemID), maxStack) local compareTo = BrokerGarbage:GetCheapest() - if inBags > 0 and maxStack <= (inBags + quantity) then + if inBags > 0 and maxStack >= (inBags + quantity) then -- this item fits without us doing anything BrokerGarbage:Debug("Item stacks.", itemLink) loot = true @@ -416,7 +416,7 @@ function BrokerGarbage:SelectiveLooting(autoloot) compareTo[1].bag, compareTo[1].slot) loot = true - elseif BG_GlobalDB.autoLootSkinning and mobType and CanSkin(mobLevel) and compareTo[1] then + elseif BG_GlobalDB.autoLootSkinning and mobType and BrokerGarbage:CanSkin(mobLevel) and compareTo[1] then -- we are skinning BrokerGarbage:Debug("Looting for skinning", itemLink) -- 1.7.9.5