mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
fixed trample and deathtouch not working when deathtouch is gained by an outside source (fixes #7633)
This commit is contained in:
parent
2daf1945e7
commit
6091c7eae3
2 changed files with 21 additions and 1 deletions
|
|
@ -1038,7 +1038,10 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
lethal = Math.min(lethal, toughness.getValue());
|
||||
}
|
||||
lethal = Math.max(lethal - this.damage, 0);
|
||||
Card attacker = game.getCard(attackerId);
|
||||
Card attacker = game.getPermanent(attackerId);
|
||||
if (attacker == null) {
|
||||
attacker = game.getCard(attackerId);
|
||||
}
|
||||
if (attacker != null && attacker.getAbilities(game).containsKey(DeathtouchAbility.getInstance().getId())) {
|
||||
lethal = Math.min(1, lethal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue