From 2750a14ea8f612fc527d1d889e701a95e3ccb38a Mon Sep 17 00:00:00 2001 From: eos Date: Sun, 3 Feb 2013 22:48:17 +0000 Subject: [PATCH] DragEffects - Fixed deleted item handling (when dropping into trash chests, for example) resulting in 'flying animations'. - Added a check for the visibility of the drag target, so hidden staff containers are not revealed. --- Server/Mobile.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/Mobile.cs b/Server/Mobile.cs index a6060cc0e..806971c0a 100644 --- a/Server/Mobile.cs +++ b/Server/Mobile.cs @@ -4361,7 +4361,7 @@ namespace Server foreach( NetState ns in eable ) { - if( ns.Mobile != from && ns.Mobile.CanSee( from ) ) + if( ns.Mobile != from && ns.Mobile.CanSee( from ) && ns.Mobile.CanSee( root ) ) { if( p == null ) { @@ -4487,7 +4487,7 @@ namespace Server public virtual void SendDropEffect( Item item ) { - if( Mobile.DragEffects ) + if( Mobile.DragEffects && !item.Deleted ) { Map map = m_Map; object root = item.RootParent; @@ -4499,7 +4499,7 @@ namespace Server foreach( NetState ns in eable ) { - if( ns.Mobile != this && ns.Mobile.CanSee( this ) ) + if( ns.Mobile != this && ns.Mobile.CanSee( this ) && ns.Mobile.CanSee( root ) ) { if( p == null ) {