This commit is contained in:
xavier 2013-02-10 01:07:28 +00:00
parent d56ff1c946
commit 661e2b3cda
2 changed files with 11 additions and 7 deletions

View file

@ -102,7 +102,7 @@ namespace Server.Items
to.SendLocalizedMessage(1040023); // You have been knocked off of your mount! to.SendLocalizedMessage(1040023); // You have been knocked off of your mount!
} }
(to as PlayerMobile).SetMountBlock(BlockMountType.Dazed, TimeSpan.FromSeconds(10), true); (to as PlayerMobile).SetMountBlock(BlockMountType.Dazed, TimeSpan.FromSeconds( Core.ML ? 10 : 3 ), true);
} }
else else
{ {
@ -111,7 +111,7 @@ namespace Server.Items
if (Core.AOS && from is PlayerMobile) /* only failsafe, attacker should already be dismounted */ if (Core.AOS && from is PlayerMobile) /* only failsafe, attacker should already be dismounted */
{ {
(from as PlayerMobile).SetMountBlock( BlockMountType.BolaRecovery, TimeSpan.FromSeconds(10), true ); (from as PlayerMobile).SetMountBlock( BlockMountType.BolaRecovery, TimeSpan.FromSeconds( Core.ML ? 10 : 3 ), true );
} }
to.Damage(1); to.Damage(1);

View file

@ -5420,20 +5420,24 @@ namespace Server.Mobiles
} }
} }
if( ReturnsToHome && this.IsSpawnerBound() ) if (ReturnsToHome && this.IsSpawnerBound() && !this.InRange(Home, RangeHome) )
{ {
if( ( Combatant == null ) && ( Warmode == false ) && Utility.RandomDouble() < .10 ) /* some throttling */ if ((Combatant == null) && (Warmode == false) && Utility.RandomDouble() < .10) /* some throttling */
{ {
m_FailedReturnHome = !this.Move( GetDirectionTo( Home.X, Home.Y ) ) ? m_FailedReturnHome + 1 : 0; m_FailedReturnHome = !this.Move(GetDirectionTo(Home.X, Home.Y)) ? m_FailedReturnHome + 1 : 0;
if( m_FailedReturnHome > 5 ) if (m_FailedReturnHome > 5)
{ {
this.SetLocation( this.Home, true ); this.SetLocation(this.Home, true);
m_FailedReturnHome = 0; m_FailedReturnHome = 0;
} }
} }
} }
else
{
m_FailedReturnHome = 0;
}
if ( HasAura && DateTime.Now >= m_NextAura ) if ( HasAura && DateTime.Now >= m_NextAura )
{ {