* Fixed that deathtouch and lifelink did not work if the source permanent left the battlefield before the damage was dealt (e.g. Marath removing its last +1/+1 counter).

This commit is contained in:
LevelX2 2014-09-16 14:15:19 +02:00
parent 3d9357c2c9
commit e0c7083145
2 changed files with 37 additions and 15 deletions

View file

@ -621,7 +621,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
damageDone = damageCreature(damageAmount, sourceId, game, preventable, combat, markDamage, appliedEffects);
}
if (damageDone > 0) {
Permanent source = game.getPermanent(sourceId);
Permanent source = game.getPermanentOrLKIBattlefield(sourceId);
if (source != null && source.getAbilities().containsKey(LifelinkAbility.getInstance().getId())) {
Player player = game.getPlayer(source.getControllerId());
player.gainLife(damageAmount, game);