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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue