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.
This commit is contained in:
eos 2013-02-03 22:48:17 +00:00
parent 4efa009b0f
commit 2750a14ea8

View file

@ -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 )
{