From 3bcff30680336b8c47b7234c86d827efb7687485 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Sun, 15 May 2011 12:58:07 +0400 Subject: [PATCH] Fixed dealing damage to permanents (Please review). Fixed Corrupt not working correctly (Issue 108) --- Mage/src/mage/game/permanent/PermanentImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/game/permanent/PermanentImpl.java b/Mage/src/mage/game/permanent/PermanentImpl.java index 3b31439ad0b..e88618c75b4 100644 --- a/Mage/src/mage/game/permanent/PermanentImpl.java +++ b/Mage/src/mage/game/permanent/PermanentImpl.java @@ -472,9 +472,13 @@ public abstract class PermanentImpl> extends CardImpl if (!game.replaceEvent(event)) { int actualDamage = event.getAmount(); if (actualDamage > 0) { - if (this.damage + event.getAmount() > this.toughness.getValue()) { + // this is not correct + // from rules: The amount of damage dealt to a creature is not bounded by its toughness, + // and the amount of damage dealt to a player is not bounded by that player's life total. + // For example, if Corrupt deals 6 damage to a 2/2 creature, you'll gain 6 life. + /*if (this.damage + event.getAmount() > this.toughness.getValue()) { actualDamage = this.toughness.getValue() - this.damage; - } + }*/ Permanent source = game.getPermanent(sourceId); if (source != null && (source.getAbilities().containsKey(InfectAbility.getInstance().getId()) || source.getAbilities().containsKey(WitherAbility.getInstance().getId()))) {