- The AI will now trade creatures with Undying more willingly.

This commit is contained in:
Sloth
2012-02-17 16:54:32 +00:00
parent 10e851594d
commit a46a2c8308
2 changed files with 4 additions and 2 deletions

View File

@@ -783,7 +783,8 @@ public class ComputerUtilAttack {
for (final Card defender : defenders) {
if (CombatUtil.canBlock(attacker, defender)) { // , combat )) {
numberOfPossibleBlockers += 1;
if (CombatUtil.canDestroyAttacker(attacker, defender, combat, false)) {
if (CombatUtil.canDestroyAttacker(attacker, defender, combat, false)
&& !(attacker.hasKeyword("Undying") && attacker.getCounters(Counters.P1P1) == 0)) {
canBeKilledByOne = true; // there is a single creature on
// the battlefield that can kill
// the creature

View File

@@ -352,7 +352,8 @@ public class ComputerUtilBlock {
final Card worst = CardFactoryUtil.getWorstCreatureAI(killingBlockers);
if ((CardFactoryUtil.evaluateCreature(worst) + ComputerUtilBlock.getDiff()) < CardFactoryUtil
.evaluateCreature(attacker)) {
.evaluateCreature(attacker)
|| (worst.hasKeyword("Undying") && worst.getCounters(Counters.P1P1) == 0)) {
blocker = worst;
}
}