public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight) { if (item == Trade.From.VirtualCheck || item == Trade.To.VirtualCheck) { return(true); } Mobile to = Trade.From.Container != this ? Trade.From.Mobile : Trade.To.Mobile; return(m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight)); }
public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight) { Mobile to; if (this.Trade.From.Container != this) to = this.Trade.From.Mobile; else to = this.Trade.To.Mobile; return m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight); }
public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight) { if (item == Trade.From.VirtualCheck || item == Trade.To.VirtualCheck) { return true; } var to = Trade.From.Container != this ? Trade.From.Mobile : Trade.To.Mobile; return m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight); }
public override bool CheckHold(Mobile m, Item item, bool message, bool checkItems, int plusItems, int plusWeight) { Mobile to; if (this.Trade.From.Container != this) { to = this.Trade.From.Mobile; } else { to = this.Trade.To.Mobile; } return(m.CheckTrade(to, item, this, message, checkItems, plusItems, plusWeight)); }