oops maybe this is better

This commit is contained in:
Crum
2018-02-20 22:02:48 -06:00
parent fcad35aafe
commit d746519b8d
+7 -5
View File
@@ -85,11 +85,13 @@ function M:MERCHANT_SHOW()
local cost, possible = GetRepairAllCost() local cost, possible = GetRepairAllCost()
local money = GetMoney() local money = GetMoney()
if cost > 0 and money >= cost and possible then if possible then
RepairAllItems(autoRepair == "PLAYER") if cost > 0 and money >= cost then
E:Print(L["Your items have been repaired for: "]..E:FormatMoney(cost, "BLIZZARD")) RepairAllItems(autoRepair == "PLAYER")
else E:Print(L["Your items have been repaired for: "]..E:FormatMoney(cost, "BLIZZARD"))
E:Print(L["You don't have enough money to repair."]) else
E:Print(L["You don't have enough money to repair."])
end
end end
end end