Fixed a bug: AI does not have to use the doubleside ability to avoid loops.

This commit is contained in:
Vittorio Alfieri
2021-04-27 17:44:41 +02:00
parent 6fb3feef72
commit 8b358b3d1c

View File

@@ -632,6 +632,10 @@ int OrderedAIAction::getEfficiency()
efficiency = 90;
}
}
else if (dynamic_cast<AATurnSide *>(a))
{
efficiency = 0; // AI does not have to use the doubleside ability to avoid loops.
}
else if (ATokenCreator * atc = dynamic_cast<ATokenCreator *>(a))
{
efficiency = 80;