Core/Guilds: Implement guild bank gold limit matching client
Port From (https://github.com/TrinityCore/TrinityCore/commit/def97385ccb3e81ae8e5661479118d12cf0372de)
This commit is contained in:
@@ -824,6 +824,13 @@ namespace Game.Guilds
|
||||
// Call script after validation and before money transfer.
|
||||
Global.ScriptMgr.OnGuildMemberDepositMoney(this, player, amount);
|
||||
|
||||
if (m_bankMoney > GuildConst.MoneyLimit - amount)
|
||||
{
|
||||
if (!cashFlow)
|
||||
SendCommandResult(session, GuildCommandType.MoveItem, GuildCommandError.TooMuchMoney);
|
||||
return;
|
||||
}
|
||||
|
||||
SQLTransaction trans = new();
|
||||
_ModifyBankMoney(trans, amount, true);
|
||||
if (!cashFlow)
|
||||
|
||||
Reference in New Issue
Block a user