fix: Fixes bank box withdraw using account gold (#671)

Fixes various locations where account gold is not used.
This commit is contained in:
Kamron Batman 2021-08-02 19:23:25 -07:00 • committed by GitHub
parent 677e44d35f
commit 3dc406624e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 28 deletions

View file

@ -5,6 +5,7 @@ using System.Text;
using Server.Accounting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Mobiles;
using Server.Network;
using Server.Regions;
@ -518,7 +519,7 @@ namespace Server.Items
Container bank = from.FindBankNoCreate();
if (m_TicketPrice == 0 || from.Backpack?.ConsumeTotal(typeof(Gold), m_TicketPrice) == true ||
bank?.ConsumeTotal(typeof(Gold), m_TicketPrice) == true)
Banker.Withdraw(from, m_TicketPrice))
{
Entries.Add(new RaffleEntry(from));