public static void Cancel( Mobile m ) { NetState ns = m.NetState; if ( ns != null ) ns.Send( CancelTarget.Instance ); Target targ = m.Target; if ( targ != null ) targ.OnTargetCancel( m, TargetCancelType.Canceled ); }
public void Timeout(Mobile from) { this.CancelTimeout(); from.ClearTarget(); Target.Cancel(from); this.OnTargetCancel(from, TargetCancelType.Timeout); this.OnTargetFinish(from); }