- Properly consider Trample damage for non-pumped blocked creatures in the previously committed routine.

This commit is contained in:
Agetian
2016-10-08 16:11:04 +00:00
parent 537c79493f
commit 01b10f2875

View File

@@ -1202,9 +1202,15 @@ public class ComputerUtilCard {
continue;
}
if (atk == c) {
totalPowerUnblocked += pumpedDmg;
totalPowerUnblocked += pumpedDmg; // this accounts for Trample by now
} else {
totalPowerUnblocked += ComputerUtilCombat.damageIfUnblocked(atk, opp, combat, true);
if (combat.isBlocked(atk)) {
// consider Trample damage properly for a blocked creature
for (Card blk : combat.getBlockers(atk)) {
totalPowerUnblocked -= ComputerUtilCombat.getDamageToKill(blk);
}
}
}
}
if (totalPowerUnblocked >= opp.getLife()){