mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
* 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:
parent
3d9357c2c9
commit
e0c7083145
2 changed files with 37 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue