Exemplo n.º 1
0
 public void Refund(Auction auction, long amount)
 {
     if (Mobile.Account is Account a)
     {
         a.DepositGold(amount);
         VaultLogging.LogRefund(auction, Mobile, amount);
     }
 }
Exemplo n.º 2
0
        public void Refund(Auction auction, long amount)
        {
            Account a = Mobile.Account as Account;

            if (a != null)
            {
                a.DepositGold(amount);
                VaultLogging.LogRefund(auction, Mobile, amount);
            }
        }