More cast conversion fixes
This commit is contained in:
parent
3f45bd57b9
commit
aba9452161
46 changed files with 359 additions and 506 deletions
|
|
@ -62,9 +62,7 @@ namespace Server.Items
|
|||
if ( m == null || !m.Player || m.AccessLevel != AccessLevel.Player || Core.AOS )
|
||||
return true;
|
||||
|
||||
Guild g = m.Guild as Guild;
|
||||
|
||||
if ( g == null || g.Type != GuildType.Chaos )
|
||||
if ( !(m.Guild is Guild g) || g.Type != GuildType.Chaos )
|
||||
{
|
||||
m.FixedEffect( 0x3728, 10, 13 );
|
||||
Delete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue