sanity checks.

This commit is contained in:
xavier 2011-07-30 13:55:08 +00:00
parent 0684f0c1bd
commit cc001df65e
2 changed files with 5 additions and 2 deletions

View file

@ -3744,7 +3744,7 @@ namespace Server.Mobiles
if ( !this.Young )
return false;
if ( !((BaseRegion)Region).YoungProtected )
if ( Region is BaseRegion && !((BaseRegion)Region).YoungProtected )
return false;
if( from is BaseCreature && ((BaseCreature)from).IgnoreYoungProtection )

View file

@ -88,8 +88,11 @@ namespace Server.SkillHandlers
steps = 1;
m.AllowedStealthSteps = steps;
PlayerMobile pm = m as PlayerMobile; // IsStealthing should be moved to Server.Mobiles
pm.IsStealthing = true;
if( pm != null )
pm.IsStealthing = true;
m.SendLocalizedMessage( 502730 ); // You begin to move quietly.