Fixes more casting and null propogation

This commit is contained in:
Kamron Batman 2018-09-11 16:20:57 -07:00
parent 403e2a8b9d
commit f211efc3bd
7 changed files with 242 additions and 412 deletions

View file

@ -345,8 +345,7 @@ namespace Server.Mobiles
public static void StopMounting( Mobile mob )
{
if ( mob.Spell is EtherealSpell )
( (EtherealSpell)mob.Spell ).Stop();
(mob.Spell as EtherealSpell)?.Stop();
}
public void OnRiderDamaged( int amount, Mobile from, bool willKill )