mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Merge pull request #3554 from vcmi/fix_ignore_guards
Fix invalid logic which made AI not attack guards
This commit is contained in:
@@ -271,9 +271,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;
|
||||||
|
Reference in New Issue
Block a user