Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add a defense single target distance checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 8, 2023
1 parent 7b13fcf commit f0c99d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Rotations/CustomRotation_Ability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private bool AutoDefense(byte abilitiesRemaining, JobRole role, bool helpDefense
//Defense himself.
if (role == JobRole.Tank && HasTankStance)
{
var tarOnMeCount = DataCenter.TarOnMeTargets.Count();
var tarOnMeCount = DataCenter.TarOnMeTargets.Count(t => t.DistanceToPlayer() <= 3);

//A lot targets are targeting on me.
if (tarOnMeCount > 1 && !IsMoving)
Expand Down

0 comments on commit f0c99d6

Please sign in to comment.