From f0c99d6a8984fa923a90255d1f63d868a27f6c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Sat, 8 Apr 2023 12:32:30 +0800 Subject: [PATCH] fix: add a defense single target distance checking. --- RotationSolver.Basic/Rotations/CustomRotation_Ability.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs b/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs index e874d0199..21db4bf95 100644 --- a/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs +++ b/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs @@ -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)