From bc193f3cc3825aad3a6436ab80f0c9856be1714e Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 7 Jan 2024 00:46:45 +0800 Subject: [PATCH] Fix dps target --- src/strategy/values/DpsTargetValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/DpsTargetValue.cpp b/src/strategy/values/DpsTargetValue.cpp index 50922240..e98d72e2 100644 --- a/src/strategy/values/DpsTargetValue.cpp +++ b/src/strategy/values/DpsTargetValue.cpp @@ -157,7 +157,7 @@ class NonCasterFindTargetSmartStrategy : public FindTargetStrategy } // attack enemy in range and with lowest health int level = GetIntervalLevel(new_unit); - if (level == 0) { + if (level == 10) { return new_time < old_time; } // all targets are far away, choose the closest one