- Try to detect cases where the actual damage to planeswalkers will be zero after prevention.

This commit is contained in:
Agetian
2017-09-18 15:29:14 +00:00
parent 44a2f1880d
commit e015e57dda

View File

@@ -916,7 +916,7 @@ public class AiBlockController {
damageToPW += ComputerUtilCombat.predictDamageTo((Card)def, pwatkr.getNetCombatDamage(), pwatkr, true);
}
}
if (!onlyIfLethal || damageToPW >= ((Card)def).getCounters(CounterType.LOYALTY)) {
if ((!onlyIfLethal && damageToPW > 0) || damageToPW >= ((Card)def).getCounters(CounterType.LOYALTY)) {
threatenedPWs.add((Card)def);
}
}