Fixes more casting and other formatting issues.

This commit is contained in:
Kamron Batman 2018-08-19 10:14:40 +08:00
parent 03dd5f1926
commit 61937d9c97
67 changed files with 325 additions and 570 deletions

View file

@ -13,9 +13,8 @@ namespace Server.Engines.PartySystem
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
if ( o is Mobile m )
{
Mobile m = (Mobile)o;
Party p = Party.Get( from );
Party mp = Party.Get( m );
@ -44,4 +43,4 @@ namespace Server.Engines.PartySystem
}
}
}
}
}

View file

@ -35,9 +35,9 @@ namespace Server.Engines.PartySystem
public static void ListenToParty_OnTarget( Mobile from, object obj )
{
if ( obj is Mobile )
if ( obj is Mobile mobile )
{
Party p = Party.Get( (Mobile) obj );
Party p = Party.Get( mobile );
if ( p == null )
{

View file

@ -12,9 +12,8 @@ namespace Server.Engines.PartySystem
protected override void OnTarget( Mobile from, object o )
{
if ( o is Mobile )
if ( o is Mobile m )
{
Mobile m = (Mobile)o;
Party p = Party.Get( from );
if ( p == null || p.Leader != from || !p.Contains( m ) )
@ -27,4 +26,4 @@ namespace Server.Engines.PartySystem
}
}
}
}
}