From db718b925ccd3e67c5f6844d3a11ac28fd3f4dcb Mon Sep 17 00:00:00 2001 From: atomaka Date: Mon, 8 Feb 2021 23:34:29 +0000 Subject: [PATCH] Clean up some issues (#8) --- MyAddon.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/MyAddon.lua b/MyAddon.lua index 0e3a1af..db62af9 100755 --- a/MyAddon.lua +++ b/MyAddon.lua @@ -50,7 +50,7 @@ function events:MERCHANT_SHOW(...) -- Repair if we need to and merchant allows it if CanMerchantRepair() and MyAddon.needsRepair() then RepairAllItems(CanGuildBankRepair()) - DEFAULT_CHAT_FRAME:AddMessage("Your items have been repaired") + print("Your items have been repaired") end end @@ -123,7 +123,7 @@ function MyAddon.sellGrayItems() for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag, slot) if name and string.find(name, "ff9d9d9d") then - DEFAULT_CHAT_FRAME:AddMessage("Selling "..name) + print("Selling "..name) UseContainerItem(bag, slot) end end @@ -135,11 +135,7 @@ function MyAddon.amTankInParty() local isTank = UnitGroupRolesAssigned("player") == "TANK" local notAlreadyMarked = GetRaidTargetIndex("player") == nil - if (isParty and isTank and notAlreadyMarked) then - return true - else - return false - end + return isParty and isTank and notAlreadyMarked end function MyAddon.markSelfSquare()