Server.Items.BaseExplosionPotion.FindParent C# (CSharp) Method

FindParent() public method

public FindParent ( Server.Mobile from ) : object
from Server.Mobile
return object
		public virtual object FindParent( Mobile from )
		{
			Mobile m = this.HeldBy;

			if ( m != null && m.Holding == this )
				return m;

			object obj = this.RootParent;

			if ( obj != null )
				return obj;

			if ( Map == Map.Internal )
				return from;

			return this;
		}