From 7563ab0c79b13cd2ccbd4f96d198dccd4b75a37e Mon Sep 17 00:00:00 2001 From: kadeshar Date: Thu, 23 Jan 2025 23:41:24 +0100 Subject: [PATCH] Fixed swimming value calculation (#897) --- 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 a61c329c..a8dbcf66 100644 --- a/src/strategy/values/IsMovingValue.cpp +++ b/src/strategy/values/IsMovingValue.cpp @@ -24,5 +24,5 @@ bool IsSwimmingValue::Calculate() if (!target) return false; - return target->IsUnderWater() || (target->IsInWater() && target->CanSwim()); + return target->IsUnderWater() || (target->GetLiquidData().Status == LIQUID_MAP_IN_WATER && target->CanSwim()); }