bug fixes
pets can no longer be renamed while in jail
This commit is contained in:
parent
8150706a3c
commit
c26e081c58
12 changed files with 181 additions and 134 deletions
|
|
@ -4271,7 +4271,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
bool ret = base.CanBeRenamedBy( from );
|
||||
|
||||
if ( Controlled && from == ControlMaster )
|
||||
if ( Controlled && from == ControlMaster && !from.Region.IsPartOf( typeof( Jail ) ) )
|
||||
ret = true;
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -51,8 +51,7 @@ namespace Server.Engines.Craft
|
|||
{
|
||||
if( targeted is PlayerMobile )
|
||||
{
|
||||
foreach( KeyValuePair<int, Recipe> kvp in m_Recipes )
|
||||
((PlayerMobile)targeted).AcquireRecipe( kvp.Key );
|
||||
((PlayerMobile)targeted).ResetRecipes();
|
||||
|
||||
m.SendMessage( "They forget all their recipies." );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue