yeah. this might work better
This commit is contained in:
parent
7c85db34de
commit
c718261654
2 changed files with 16 additions and 4 deletions
|
|
@ -4392,10 +4392,13 @@ namespace Server
|
|||
Mobile from = this;
|
||||
Item item = from.Holding;
|
||||
|
||||
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
|
||||
|
||||
from.Holding = null;
|
||||
|
||||
if ( item == null || item.HeldBy != from || item.Map != Map.Internal )
|
||||
if ( !valid ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool bounced = true;
|
||||
|
||||
|
|
@ -4419,10 +4422,13 @@ namespace Server
|
|||
Mobile from = this;
|
||||
Item item = from.Holding;
|
||||
|
||||
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
|
||||
|
||||
from.Holding = null;
|
||||
|
||||
if ( item == null || item.HeldBy != from || item.Map != Map.Internal )
|
||||
if ( !valid ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool bounced = true;
|
||||
|
||||
|
|
@ -4446,10 +4452,13 @@ namespace Server
|
|||
Mobile from = this;
|
||||
Item item = from.Holding;
|
||||
|
||||
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
|
||||
|
||||
from.Holding = null;
|
||||
|
||||
if ( item == null || item.HeldBy != from || item.Map != Map.Internal )
|
||||
if ( !valid ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool bounced = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue