- Added another check for r31096

This commit is contained in:
excessum
2016-04-08 11:47:14 +00:00
parent d745dda1b0
commit c33f08318c

View File

@@ -77,7 +77,7 @@ public class DamageDealAi extends DamageAiBase {
for (; loyalty > 0; loyalty--) {
if (this.damageTargetAI(ai, sa, loyalty, false)) {
dmg = ComputerUtilCombat.getEnoughDamageToKill(sa.getTargetCard(), loyalty, source, false, false);
if (dmg > loyalty) {
if (dmg > loyalty || dmg < 1) {
continue; // in case the calculation gets messed up somewhere
}
source.setSVar("ChosenX", "Number$" + dmg);