This commit is contained in:
mark 2010-10-17 05:09:40 +00:00
parent b134ad2139
commit 5f4634fa96

View file

@ -1492,15 +1492,14 @@ namespace Server.Mobiles
{ {
if ( Alive && Core.Expansion >= Expansion.AOS ) if ( Alive && Core.Expansion >= Expansion.AOS )
{ {
if ( from.Party == null && this.Party == null ) if ( from.Party == null && this.Party == null ) {
list.Add( new AddToPartyEntry( from, this ) ); list.Add( new AddToPartyEntry( from, this ) );
} else if ( from.Party != null && ((Party)(from.Party)).Leader == from ) {
else if ( from.Party != null && ((Party)from.Party).Leader == from ) if ( this.Party == null ) {
{
if ( this.Party == null )
list.Add( new AddToPartyEntry( from, this ) ); list.Add( new AddToPartyEntry( from, this ) );
else if ( this.Party == from.Party ) } else if ( this.Party == from.Party ) {
list.Add( new RemoveFromPartyEntry( from, this ) ); list.Add( new RemoveFromPartyEntry( from, this ) );
}
} }
} }