More cast conversion fixes

This commit is contained in:
Kamron Batman 2018-09-06 18:07:42 -07:00
parent 3f45bd57b9
commit aba9452161
46 changed files with 359 additions and 506 deletions

View file

@ -65,9 +65,7 @@ namespace Server.Items
if ( Core.AOS || m == null || !m.Player || m.AccessLevel != AccessLevel.Player )
return true;
Guild g = m.Guild as Guild;
if ( g == null || g.Type != GuildType.Order )
if ( !(m.Guild is Guild g) || g.Type != GuildType.Order )
{
m.FixedEffect( 0x3728, 10, 13 );
Delete();