bug fixes

pets can no longer be renamed while in jail
This commit is contained in:
asayre 2006-08-14 07:41:26 +00:00
parent 8150706a3c
commit c26e081c58
12 changed files with 181 additions and 134 deletions

View file

@ -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;

View file

@ -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." );
}