From d746519b8d2f8905973d149a7c4a910bde446a88 Mon Sep 17 00:00:00 2001 From: Crum Date: Tue, 20 Feb 2018 22:02:48 -0600 Subject: [PATCH] oops maybe this is better --- ElvUI/Modules/Misc/Misc.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ElvUI/Modules/Misc/Misc.lua b/ElvUI/Modules/Misc/Misc.lua index a592b77..0fe35cf 100644 --- a/ElvUI/Modules/Misc/Misc.lua +++ b/ElvUI/Modules/Misc/Misc.lua @@ -85,11 +85,13 @@ function M:MERCHANT_SHOW() local cost, possible = GetRepairAllCost() local money = GetMoney() - if cost > 0 and money >= cost and possible then - RepairAllItems(autoRepair == "PLAYER") - E:Print(L["Your items have been repaired for: "]..E:FormatMoney(cost, "BLIZZARD")) - else - E:Print(L["You don't have enough money to repair."]) + if possible then + if cost > 0 and money >= cost then + RepairAllItems(autoRepair == "PLAYER") + E:Print(L["Your items have been repaired for: "]..E:FormatMoney(cost, "BLIZZARD")) + else + E:Print(L["You don't have enough money to repair."]) + end end end