From 8b358b3d1c0fcae53ebbc4b1c803215a9abe4b61 Mon Sep 17 00:00:00 2001 From: Vittorio Alfieri Date: Tue, 27 Apr 2021 17:44:41 +0200 Subject: [PATCH] Fixed a bug: AI does not have to use the doubleside ability to avoid loops. --- projects/mtg/src/AIPlayerBaka.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/mtg/src/AIPlayerBaka.cpp b/projects/mtg/src/AIPlayerBaka.cpp index 8f58fd6fd..0d01fc9b5 100644 --- a/projects/mtg/src/AIPlayerBaka.cpp +++ b/projects/mtg/src/AIPlayerBaka.cpp @@ -632,6 +632,10 @@ int OrderedAIAction::getEfficiency() efficiency = 90; } } + else if (dynamic_cast(a)) + { + efficiency = 0; // AI does not have to use the doubleside ability to avoid loops. + } else if (ATokenCreator * atc = dynamic_cast(a)) { efficiency = 80;