Core/Misc: Improvement item durability repair logic.
Port From (https://github.com/TrinityCore/TrinityCore/commit/72a4fccaab4e83801c33c533cbcfdba1c6c43022)
This commit is contained in:
@@ -1758,6 +1758,15 @@ namespace Game.Guilds
|
||||
return m_members.ContainsKey(guid);
|
||||
}
|
||||
|
||||
public ulong GetMemberAvailableMoneyForRepairItems(ObjectGuid guid)
|
||||
{
|
||||
Member member = GetMember(guid);
|
||||
if (member == null)
|
||||
return 0;
|
||||
|
||||
return Math.Min(m_bankMoney, (ulong)_GetMemberRemainingMoney(member));
|
||||
}
|
||||
|
||||
public void SwapItems(Player player, byte tabId, byte slotId, byte destTabId, byte destSlotId, uint splitedAmount)
|
||||
{
|
||||
if (tabId >= _GetPurchasedTabsSize() || slotId >= GuildConst.MaxBankSlots ||
|
||||
|
||||
Reference in New Issue
Block a user