Fixed one overlooked instance of lethalDamage

This commit is contained in:
Zzooouhh 2017-12-28 16:53:52 +01:00 committed by GitHub
parent f166bebe8c
commit c25eaa9446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,7 +256,7 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
if (attacker.getAbilities().containsKey(DeathtouchAbility.getInstance().getId())) {
lethalDamage = 1;
} else {
lethalDamage = blocker.getToughness().getValue() - blocker.getDamage();
lethalDamage = Math.max(blocker.getToughness().getValue() - blocker.getDamage(), 0);
}
if (lethalDamage >= damage) {
blocker.markDamage(damage, attacker.getId(), game, true, true);