diff --git a/Scripts/Mobiles/PlayerMobile.cs b/Scripts/Mobiles/PlayerMobile.cs index 22bad9874..09b4c52e8 100644 --- a/Scripts/Mobiles/PlayerMobile.cs +++ b/Scripts/Mobiles/PlayerMobile.cs @@ -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 ) diff --git a/Scripts/Skills/Stealth.cs b/Scripts/Skills/Stealth.cs index bd61a8868..884844849 100644 --- a/Scripts/Skills/Stealth.cs +++ b/Scripts/Skills/Stealth.cs @@ -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.