From e1620c0a5ff56d49c6e381629a1aab4e0856eb49 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 10 Oct 2011 14:34:55 +0000 Subject: [PATCH] re-added a line which was removed in r4000, when ai is forced to "chooseCard" through the effects of "choice " or "target(" and a valid target exist, we run into a lock down becuase we don't switch playerZones to the other players game after the first run of the playerZone...the TC will see that there is indeed a valid target however, since it can not target the other side it will contenue to try over and over, locking it up. --- projects/mtg/src/AIPlayerBaka.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/AIPlayerBaka.cpp b/projects/mtg/src/AIPlayerBaka.cpp index 232719661..baf7deb3c 100644 --- a/projects/mtg/src/AIPlayerBaka.cpp +++ b/projects/mtg/src/AIPlayerBaka.cpp @@ -634,6 +634,8 @@ MTGCardInstance * AIPlayerBaka::chooseCard(TargetChooser * tc, MTGCardInstance * } } } + //switch player->zones to the other player and check there if we haven't found one yet. + playerZones = source->controller()->opponent()->game; } return NULL; }