diff --git a/Scripts/Items/Farming/FarmableCrop.cs b/Scripts/Items/Farming/FarmableCrop.cs index c7056e0..90e6def 100644 --- a/Scripts/Items/Farming/FarmableCrop.cs +++ b/Scripts/Items/Farming/FarmableCrop.cs @@ -33,6 +33,21 @@ namespace Server.Items OnPicked( from, loc, map ); } + public override bool HandlesOnMovement { get { return true; } } + + public override void OnMovement( Mobile m, Point3D oldLocation ) + { + if ( !m_Picked && m is PlayerMobile && m.Alive ) + { + if ( m.InRange( this.Location, 2 ) && m.InLOS( this ) ) + { + this.OnDoubleClick( m ); + } + } + + base.OnMovement( m, oldLocation ); + } + public override bool OnMoveOver( Mobile m ) { if ( m is PlayerMobile && m.Alive ) @@ -112,4 +127,4 @@ namespace Server.Items } } } -} \ No newline at end of file +}