From 03199375fb62a007b9b443b6952a2fcc323e95b7 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Wed, 2 Jun 2021 18:35:40 +0200 Subject: [PATCH] Add last bank slot for TBC --- ItemRack/ItemRack.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ItemRack/ItemRack.lua b/ItemRack/ItemRack.lua index 93fa7b7..d4e6fc2 100644 --- a/ItemRack/ItemRack.lua +++ b/ItemRack/ItemRack.lua @@ -75,7 +75,11 @@ ItemRackItems = { ItemRack.Menu = {} ItemRack.LockList = {} -- index -2 to 11, flag whether item is tagged already for swap -ItemRack.BankSlots = { -1,5,6,7,8,9,10 } +if ItemRack.IsClassic() then + ItemRack.BankSlots = { -1,5,6,7,8,9,10 } +elseif ItemRack.IsBCC() then + ItemRack.BankSlots = { -1,5,6,7,8,9,10,11 } +end ItemRack.KnownItems = {} -- cache of known item locations for fast lookup ItemRack.SlotInfo = { @@ -1916,7 +1920,7 @@ function ItemRack.SetSetBindings() if ItemRackUser.Sets[i].key then buttonName = "ItemRack"..UnitName("player")..GetRealmName()..i button = _G[buttonName] or CreateFrame("Button",buttonName,nil,"SecureActionButtonTemplate") - + button:SetAttribute("type","macro") local macrotext = "/script ItemRack.RunSetBinding(\""..i.."\")\n" for slot = 16, 18 do