fix: Fixes bank box withdraw using account gold (#671)
Fixes various locations where account gold is not used.
This commit is contained in:
parent
677e44d35f
commit
3dc406624e
5 changed files with 11 additions and 28 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue