revised check

This commit is contained in:
xavier 2013-02-10 00:12:01 +00:00
parent 91273d85d6
commit d56ff1c946

View file

@ -679,7 +679,7 @@ namespace Server.Mobiles
private static bool CheckBlock( MountBlock block ) private static bool CheckBlock( MountBlock block )
{ {
return ( !( block is MountBlock ) || !block.m_Timer.Running ); return ( ( block is MountBlock ) && block.m_Timer.Running );
} }
private class MountBlock private class MountBlock
@ -704,11 +704,11 @@ namespace Server.Mobiles
{ {
if( dismount ) if( dismount )
{ {
if (this.Mount != null) if ( this.Mount != null )
{ {
this.Mount.Rider = null; this.Mount.Rider = null;
} }
else if (AnimalForm.UnderTransformation(this)) else if( AnimalForm.UnderTransformation( this ) )
{ {
AnimalForm.RemoveContext(this, true); AnimalForm.RemoveContext(this, true);
} }