From dbf53d78badacc6c8691af0251d3103f8d3a189d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Wed, 24 Jan 2024 06:20:46 +0100 Subject: [PATCH] Fix invalid logic which made AI not attack guards --- lib/pathfinder/PathfindingRules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pathfinder/PathfindingRules.cpp b/lib/pathfinder/PathfindingRules.cpp index 2f13caca2..1be7fe660 100644 --- a/lib/pathfinder/PathfindingRules.cpp +++ b/lib/pathfinder/PathfindingRules.cpp @@ -271,9 +271,9 @@ PathfinderBlockingRule::BlockingReason MovementAfterDestinationRule::getBlocking if(destination.guarded) { if (pathfinderHelper->options.ignoreGuards) - return BlockingReason::DESTINATION_GUARDED; - else return BlockingReason::NONE; + else + return BlockingReason::DESTINATION_GUARDED; } break;