From 9353cdbb393d3958d6ecc405a42c025224da3ec6 Mon Sep 17 00:00:00 2001 From: Emagi Date: Sun, 1 Dec 2024 10:55:36 -0500 Subject: [PATCH] can only repair at a repair vendor --- source/WorldServer/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/WorldServer/client.cpp b/source/WorldServer/client.cpp index 0958c6e..5991c24 100644 --- a/source/WorldServer/client.cpp +++ b/source/WorldServer/client.cpp @@ -8490,7 +8490,7 @@ void Client::BuyItem(int32 item_id, int16 quantity) { void Client::RepairItem(int32 item_id) { Spawn* spawn = GetMerchantTransaction(); - if (spawn) { + if (spawn && (spawn->GetMerchantType() & MERCHANT_TYPE_REPAIR)) { Item* item = player->item_list.GetItemFromID(item_id); if (!item) item = player->GetEquipmentList()->GetItemFromItemID(item_id); @@ -8528,7 +8528,7 @@ void Client::RepairItem(int32 item_id) { void Client::RepairAllItems() { Spawn* spawn = GetMerchantTransaction(); - if (spawn) { + if (spawn && (spawn->GetMerchantType() & MERCHANT_TYPE_REPAIR)) { vector* repairable_items = GetRepairableItems(); if (repairable_items && repairable_items->size() > 0) { vector::iterator itr;