mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- The AI will now trade creatures with Undying more willingly.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user