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.

This commit is contained in:
omegablast2002@yahoo.com
2011-01-31 13:02:40 +00:00
parent 378fe1c600
commit 1149f04df6

View File

@@ -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.