Clean up some issues (#8)
This commit is contained in:
parent
028fc72df2
commit
db718b925c
1 changed files with 3 additions and 7 deletions
10
MyAddon.lua
10
MyAddon.lua
|
@ -50,7 +50,7 @@ function events:MERCHANT_SHOW(...)
|
||||||
-- Repair if we need to and merchant allows it
|
-- Repair if we need to and merchant allows it
|
||||||
if CanMerchantRepair() and MyAddon.needsRepair() then
|
if CanMerchantRepair() and MyAddon.needsRepair() then
|
||||||
RepairAllItems(CanGuildBankRepair())
|
RepairAllItems(CanGuildBankRepair())
|
||||||
DEFAULT_CHAT_FRAME:AddMessage("Your items have been repaired")
|
print("Your items have been repaired")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ function MyAddon.sellGrayItems()
|
||||||
for slot = 1, GetContainerNumSlots(bag) do
|
for slot = 1, GetContainerNumSlots(bag) do
|
||||||
local name = GetContainerItemLink(bag, slot)
|
local name = GetContainerItemLink(bag, slot)
|
||||||
if name and string.find(name, "ff9d9d9d") then
|
if name and string.find(name, "ff9d9d9d") then
|
||||||
DEFAULT_CHAT_FRAME:AddMessage("Selling "..name)
|
print("Selling "..name)
|
||||||
UseContainerItem(bag, slot)
|
UseContainerItem(bag, slot)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -135,11 +135,7 @@ function MyAddon.amTankInParty()
|
||||||
local isTank = UnitGroupRolesAssigned("player") == "TANK"
|
local isTank = UnitGroupRolesAssigned("player") == "TANK"
|
||||||
local notAlreadyMarked = GetRaidTargetIndex("player") == nil
|
local notAlreadyMarked = GetRaidTargetIndex("player") == nil
|
||||||
|
|
||||||
if (isParty and isTank and notAlreadyMarked) then
|
return isParty and isTank and notAlreadyMarked
|
||||||
return true
|
|
||||||
else
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function MyAddon.markSelfSquare()
|
function MyAddon.markSelfSquare()
|
||||||
|
|
Loading…
Reference in a new issue