Skip to content

Commit

Permalink
fix: properly checks AllowCombatMovement on player's input (#2193)
Browse files Browse the repository at this point in the history
Fixes an issue where attacker time was updated even though the player never attacked when AllowCombatMovement setting was set to false
  • Loading branch information
Mighty-Professional committed Mar 24, 2024
1 parent 98b9961 commit b8cde73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Intersect.Client/Entities/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public override bool Update()
}
else if (!Globals.Me.TryAttack())
{
if (!Globals.Me.IsAttacking)
if (!Globals.Me.IsAttacking && (!IsMoving || Options.Instance.PlayerOpts.AllowCombatMovement))
{
Globals.Me.AttackTimer = Timing.Global.Milliseconds + Globals.Me.CalculateAttackTime();
}
Expand Down

0 comments on commit b8cde73

Please sign in to comment.