told Ai not to block its own attacking creatures(?), hopefully this is whats happening in issue 547.

its been discovered and maybe even known that Ai can do alot of illegal actions as if the rules we set inplace for the player don't apply to it.
This commit is contained in:
omegablast2002@yahoo.com
2010-12-04 20:01:22 +00:00
parent 7805e52910
commit e8582e1413

View File

@@ -150,7 +150,7 @@ ManaCost * AIPlayer::getPotentialMana(MTGCardInstance * target)
//adding the current manapool if any, to the potential mana Ai can use.
result->add(this->getManaPool());
}
return result;
return result;
}
int AIPlayer::getEfficiency(AIAction * action)
@@ -933,7 +933,7 @@ int AIPlayer::chooseBlockers()
{
MTGCardInstance * attacker = card->defenser;
if (opponentsToughness[attacker] <= 0 || (card->toughness <= attacker->power && opponentForce * 2 < life
&& !canFirstStrikeKill(card, attacker)) || attacker->nbOpponents() > 1)
&& !canFirstStrikeKill(card, attacker)) || attacker->nbOpponents() > 1 || attacker->controller()->isAI())
{
g->mLayers->actionLayer()->reactToClick(a, card);
}