1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Fix invalid logic which made AI not attack guards

This commit is contained in:
Tomasz Zieliński
2024-01-24 06:20:46 +01:00
parent 634b90169d
commit dbf53d78ba

View File

@ -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;