From 1149f04df67afb34d314e03f7145aa99dce11025 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 31 Jan 2011 13:02:40 +0000 Subject: [PATCH] fixed a reported issue with regenerate...chooseBlockers appears as if it was never safegaurded at all...tho its understandable, wagic only made it "look" like ai was being offered a chance to interupt...in reality ai used to "check if it can interupt" then immedately "cancel interupt offer"...now its given a chance to interupt and cast instants...over looked in chooseblockers. --- projects/mtg/src/AIPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/AIPlayer.cpp b/projects/mtg/src/AIPlayer.cpp index 061f4540c..ec1557288 100644 --- a/projects/mtg/src/AIPlayer.cpp +++ b/projects/mtg/src/AIPlayer.cpp @@ -994,6 +994,8 @@ int AIPlayer::chooseBlockers() GameObserver * g = GameObserver::GetInstance(); if (g->currentActionPlayer != this) return 0; + if(g->isInterrupting == this) + return 0; //ai should not be allowed to run this if it is not legally allowed to do so //this fixes a bug where ai would try to use this as an interupt //when ai is given priority to select blockers it is allowed to run this as normal.