Fixes more casting and null propogation
This commit is contained in:
parent
403e2a8b9d
commit
f211efc3bd
7 changed files with 242 additions and 412 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue