Server.Items.BaseWand.OnDoubleClick C# (CSharp) Method

OnDoubleClick() public method

public OnDoubleClick ( Mobile from ) : void
from Mobile
return void
		public override void OnDoubleClick( Mobile from )
		{
			if ( !from.CanBeginAction( typeof( BaseWand ) ) )
			{
				from.SendLocalizedMessage( 1070860 ); // You must wait a moment for the wand to recharge.
				return;
			}

			if ( Parent == from )
			{
				if ( Charges > 0 )
					OnWandUse( from );
				else
					from.SendLocalizedMessage( 1019073 ); // This item is out of charges.
			}
			else
			{
				from.SendLocalizedMessage( 502641 ); // You must equip this item to use it.
			}
		}