From f09cbd8e1ffba45c7c515a0d96bd3ef3fd594cfb Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Thu, 24 Mar 2016 23:16:34 +0100 Subject: [PATCH] post fix for charge items --- core.lua | 2 +- stack.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index e01f5f7..4ac7440 100644 --- a/core.lua +++ b/core.lua @@ -1,5 +1,5 @@ Aux = { - version = '2.9.19', + version = '2.9.20', blizzard_ui_shown = false, orig = {}, } diff --git a/stack.lua b/stack.lua index 7f3861d..e53dbb0 100644 --- a/stack.lua +++ b/stack.lua @@ -45,8 +45,8 @@ function private.find_empty_slot() end function private.find_charge_item_slot() - for slot in private.item_slots(state.item_key) do - if private.charges(slot) == state.target_size then + for slot in Aux.util.inventory() do + if private.matching_item(slot) and private.charges(slot) == state.target_size then return slot end end