From cf7a0136071ba60411630dace7e83e1176d5d138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 23 Mar 2023 12:38:05 -0600 Subject: [PATCH] Fix bots using swimming form where they can't swim --- src/strategy/values/IsMovingValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/values/IsMovingValue.cpp b/src/strategy/values/IsMovingValue.cpp index 4bbbe6c5..47f297a3 100644 --- a/src/strategy/values/IsMovingValue.cpp +++ b/src/strategy/values/IsMovingValue.cpp @@ -22,5 +22,5 @@ bool IsSwimmingValue::Calculate() if (!target) return false; - return target->IsUnderWater() || target->IsInWater(); + return target->IsUnderWater() || (target->IsInWater() && target->CanSwim()); }