More casting fixes
This commit is contained in:
parent
f211efc3bd
commit
20a80ea2f3
40 changed files with 125 additions and 211 deletions
|
|
@ -71,8 +71,8 @@ namespace Server.Mobiles
|
|||
if ( mount != null )
|
||||
mount.Rider = null;
|
||||
|
||||
if ( mount is Mobile )
|
||||
((Mobile)mount).Delete();
|
||||
if ( mount is Mobile mobile )
|
||||
mobile.Delete();
|
||||
|
||||
return base.OnBeforeDeath();
|
||||
}
|
||||
|
|
@ -98,8 +98,8 @@ namespace Server.Mobiles
|
|||
aggressor.PlaySound( 0x307 );
|
||||
aggressor.SendLocalizedMessage( 1040008 ); // Your skin is scorched as the tribal paint burns away!
|
||||
|
||||
if ( aggressor is PlayerMobile )
|
||||
((PlayerMobile)aggressor).SavagePaintExpiration = TimeSpan.Zero;
|
||||
if ( aggressor is PlayerMobile mobile )
|
||||
mobile.SavagePaintExpiration = TimeSpan.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue