Skip to content

Commit

Permalink
Fix bodyguard shrinker
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Jul 26, 2016
1 parent 12f08b3 commit 98dc690
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion Cork.toc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

## OptionalDeps: tekErr

externals\ptr.lua
externals\timer.lua
externals\tooltip_scanner.lua
externals\ui-tab.lua
Expand Down
1 change: 1 addition & 0 deletions KeyBlacklist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ local keys = {
"TestWithoutResting",
"tiplink",
"tiptext",
"toyname",
"type",
"UNIT_AURA",
"UNIT_INVENTORY_CHANGED",
Expand Down
1 change: 0 additions & 1 deletion externals.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ptr.lua
timer.lua
tooltip_scanner.lua
ui-tab.lua
4 changes: 0 additions & 4 deletions externals/ptr.lua

This file was deleted.

2 changes: 0 additions & 2 deletions modules/BuffItems.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ function dataobj:Init()
end


if not Cork.is_six_one then return end

-- Bodyguard Miniaturization Device
local dataobj = Cork:GenerateItemSelfBuffer(122298)
dataobj.Test = dataobj.TestWithoutResting
6 changes: 4 additions & 2 deletions templates/ItemSelfBuffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ local function Init(self)
self.spellname = self.name
self.spells = {self.name}
self.iconline = ns.IconLine(GetItemIcon(self.itemid), self.name)
ns.defaultspc[self.name.."-enabled"] = GetItemCount(self.itemid) > 0
local itemID, name, texture, collected = C_ToyBox.GetToyInfo(self.itemid)
self.toyname = name
ns.defaultspc[self.name.."-enabled"] = collected or (GetItemCount(self.itemid) > 0)
end


local function CorkIt(self, frame)
if self.player then
local item = "item:".. self.itemid
local item = self.toyname or ("item:".. self.itemid)
return frame:SetManyAttributes("type1", "item", "item1", item)
end
end
Expand Down

0 comments on commit 98dc690

Please sign in to comment.