diff --git a/Projects/UOContent/Mobiles/AI/MeleeAI.cs b/Projects/UOContent/Mobiles/AI/MeleeAI.cs index 5bb697a1b..f431b1d23 100644 --- a/Projects/UOContent/Mobiles/AI/MeleeAI.cs +++ b/Projects/UOContent/Mobiles/AI/MeleeAI.cs @@ -81,7 +81,11 @@ public class MeleeAI : BaseAI if (!MoveTo(combatant, true, m_Mobile.RangeFight)) { - m_Mobile.Direction = m_Mobile.GetDirectionTo(combatant); + if (m_Mobile.InRange(combatant, 1)) + { + m_Mobile.Direction = m_Mobile.GetDirectionTo(combatant); + } + if (AcquireFocusMob(m_Mobile.RangePerception, m_Mobile.FightMode, false, false, true)) { if (m_Mobile.Debug) @@ -175,6 +179,8 @@ public class MeleeAI : BaseAI m_Mobile.DebugSay("I am stronger now, so I will continue fighting"); } + m_Mobile.PlaySound(m_Mobile.GetAttackSound()); + m_Mobile.CurrentSpeed = m_Mobile.ActiveSpeed; Action = ActionType.Combat; } else