sanity checks.
This commit is contained in:
parent
0684f0c1bd
commit
cc001df65e
2 changed files with 5 additions and 2 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue