mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +02:00
Fix invalid logic which made AI not attack guards
This commit is contained in:
parent
2f5bf64340
commit
a2e0742ffb
@ -273,9 +273,9 @@ PathfinderBlockingRule::BlockingReason MovementAfterDestinationRule::getBlocking
|
|||||||
if(destination.guarded)
|
if(destination.guarded)
|
||||||
{
|
{
|
||||||
if (pathfinderHelper->options.ignoreGuards)
|
if (pathfinderHelper->options.ignoreGuards)
|
||||||
return BlockingReason::DESTINATION_GUARDED;
|
|
||||||
else
|
|
||||||
return BlockingReason::NONE;
|
return BlockingReason::NONE;
|
||||||
|
else
|
||||||
|
return BlockingReason::DESTINATION_GUARDED;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user