From 953f09364af4036cae780df49d465df4a6eb36d8 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 28 Aug 2023 17:27:15 +0800 Subject: [PATCH] nearest corpses --- src/strategy/values/NearestCorpsesValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/NearestCorpsesValue.cpp b/src/strategy/values/NearestCorpsesValue.cpp index 40639eb4..b3d4d98f 100644 --- a/src/strategy/values/NearestCorpsesValue.cpp +++ b/src/strategy/values/NearestCorpsesValue.cpp @@ -15,7 +15,7 @@ class AnyDeadUnitInObjectRangeCheck WorldObject const& GetFocusObject() const { return *i_obj; } bool operator()(Unit* u) { - return !u->IsAlive() && i_obj->IsWithinDistInMap(u, i_range); + return !u->IsAlive(); } private: