More casting fixes
This commit is contained in:
parent
f211efc3bd
commit
20a80ea2f3
40 changed files with 125 additions and 211 deletions
|
|
@ -132,9 +132,9 @@ namespace Server.Mobiles
|
|||
OfferResurrection( m );
|
||||
}
|
||||
}
|
||||
else if ( this.HealsYoungPlayers && m.Hits < m.HitsMax && m is PlayerMobile && ((PlayerMobile)m).Young )
|
||||
else if ( this.HealsYoungPlayers && m.Hits < m.HitsMax && m is PlayerMobile mobile && mobile.Young )
|
||||
{
|
||||
OfferHeal( (PlayerMobile) m );
|
||||
OfferHeal( mobile );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue