Skip to content

Commit

Permalink
Acutally, lets just never ever show BoA items in panda
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Nov 4, 2012
1 parent fe032e9 commit 82c0df7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Disenchanting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ local GS, L = Panda.GS, Panda.locale
local function IsBound(bag, slot)
tip:SetBagItem(bag, slot)
for i=1,30 do
if tip.L[i] == L.Soulbound then return true end
if tip.L[i] == L["Battle.net Account Bound"] then return true end
if tip.L[i] == L.Soulbound then return true, false end
if tip.L[i] == L["Battle.net Account Bound"] then return true, true end
end
end

Expand Down Expand Up @@ -169,8 +169,8 @@ frame:SetScript("OnShow", function(self)
for slot=1,GetContainerNumSlots(bag) do
local link = GetContainerItemLink(bag, slot)
if link and ns.DEable(link) then
local bound = IsBound(bag, slot)
if showBOP or not bound then
local bound, BoA = IsBound(bag, slot)
if not BoA and showBOP or not bound then
local name, _, quality, itemLevel, _, itemType, itemSubType, _, _, texture = GetItemInfo(link)

local l = frame.lines[i]
Expand Down Expand Up @@ -207,7 +207,7 @@ frame:SetScript("OnShow", function(self)
BOP:SetScript("OnClick", function() showBOP = not showBOP; OnEvent(self) end)

local BOPlabel = cfs(BOP, nil, "ARTWORK", "GameFontNormalSmall", "LEFT", BOP, "RIGHT", 5, 0)
BOPlabel:SetText("Show soulbound/BoA items")
BOPlabel:SetText("Show soulbound items")

self:SetScript("OnEvent", OnEvent)
self:RegisterEvent("BAG_UPDATE")
Expand Down

0 comments on commit 82c0df7

Please sign in to comment.