Quantcast

-- TitanClassicRepair: Commented out GuildBank logic within plugin so auto-repair will function.

HonorGoG [08-30-19 - 22:20]
-- TitanClassicRepair: Commented out GuildBank logic within plugin so auto-repair will function.
Filename
TitanClassicRepair/TitanClassicRepair.lua
diff --git a/TitanClassicRepair/TitanClassicRepair.lua b/TitanClassicRepair/TitanClassicRepair.lua
index f24f7c2..5b9c1c4 100644
--- a/TitanClassicRepair/TitanClassicRepair.lua
+++ b/TitanClassicRepair/TitanClassicRepair.lua
@@ -1260,6 +1260,7 @@ local info;
 			L_UIDropDownMenu_AddButton(info, _G["L_UIDROPDOWNMENU_MENU_LEVEL"]);
 		end

+--[[
 		if _G["L_UIDROPDOWNMENU_MENU_VALUE"] == "GuildBank" then
 			totalGBCP = GetGuildBankMoney();
 			withdrawGBCP = GetGuildBankWithdrawMoney();
@@ -1278,6 +1279,7 @@ local info;
 			info.checked = TitanGetVar(TITAN_REPAIR_ID,"UseGuildBank");
 			L_UIDropDownMenu_AddButton(info, _G["L_UIDROPDOWNMENU_MENU_LEVEL"]);
 		end
+]]

 		if _G["L_UIDROPDOWNMENU_MENU_VALUE"] == "TooltipOptions" then
 			TitanPanelRightClickMenu_AddTitle(L["REPAIR_LOCALE"]["TooltipOptions"], _G["L_UIDROPDOWNMENU_MENU_LEVEL"]);
@@ -1324,6 +1326,7 @@ local info;
 	info.hasArrow = 1;
 	L_UIDropDownMenu_AddButton(info);

+--[[
 	local guildName, _, _ = GetGuildInfo("player")
 	info = {};
 	info.notCheckable = true
@@ -1335,6 +1338,7 @@ local info;
 		info.disabled = true
 	end
 	L_UIDropDownMenu_AddButton(info);
+]]

 	info = {};
 	info.notCheckable = true
@@ -1467,6 +1471,7 @@ function TitanRepair_RepairItems()
 	-- New RepairAll function
 	local cost = GetRepairAllCost();
 	local money = GetMoney();
+--[[
 	local withdrawLimit = GetGuildBankWithdrawMoney();
 	local guildBankMoney = GetGuildBankMoney();

@@ -1492,6 +1497,7 @@ function TitanRepair_RepairItems()
 			DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..":".."|r"..L["TITAN_REPAIR_GBANK_NORIGHTS"])
 		end
 	end
+]]

 	-- Use own funds
 	if not TitanGetVar(TITAN_REPAIR_ID,"UseGuildBank") then