public void Refund(Auction auction, long amount) { if (Mobile.Account is Account a) { a.DepositGold(amount); VaultLogging.LogRefund(auction, Mobile, amount); } }
public void Refund(Auction auction, long amount) { Account a = Mobile.Account as Account; if (a != null) { a.DepositGold(amount); VaultLogging.LogRefund(auction, Mobile, amount); } }