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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user