From 1bae2b0b1eb8326266940bf81af8b6b451636d44 Mon Sep 17 00:00:00 2001 From: shootbot Date: Thu, 16 Jun 2016 19:51:20 +0600 Subject: [PATCH] Fixed Leeching Sliver bug Following bugs fixed: No life loss from a trigger when Leeching Sliver attacks a planeswalker No life loss from a trigger when Leeching Sliver doesn't attack a player and another sliver does --- Mage.Sets/src/mage/sets/magic2015/LeechingSliver.java | 2 +- .../abilities/effects/common/LoseLifeDefendingPlayerEffect.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magic2015/LeechingSliver.java b/Mage.Sets/src/mage/sets/magic2015/LeechingSliver.java index bd6f64fc37..dd82eca94b 100644 --- a/Mage.Sets/src/mage/sets/magic2015/LeechingSliver.java +++ b/Mage.Sets/src/mage/sets/magic2015/LeechingSliver.java @@ -61,7 +61,7 @@ public class LeechingSliver extends CardImpl { this.toughness = new MageInt(1); // Whenever a Sliver you control attacks, defending player loses 1 life. - this.addAbility(new AttacksAllTriggeredAbility(new LoseLifeDefendingPlayerEffect(1, true), false, filter, SetTargetPointer.PLAYER, false)); + this.addAbility(new AttacksAllTriggeredAbility(new LoseLifeDefendingPlayerEffect(1, false), false, filter, SetTargetPointer.PLAYER, false)); } public LeechingSliver(final LeechingSliver card) { diff --git a/Mage/src/main/java/mage/abilities/effects/common/LoseLifeDefendingPlayerEffect.java b/Mage/src/main/java/mage/abilities/effects/common/LoseLifeDefendingPlayerEffect.java index 6f980b91f1..6028a15176 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/LoseLifeDefendingPlayerEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/LoseLifeDefendingPlayerEffect.java @@ -77,7 +77,7 @@ public class LoseLifeDefendingPlayerEffect extends OneShotEffect { if (attackerIsSource) { defender = game.getPlayer(game.getCombat().getDefenderId(source.getSourceId())); } else { - defender = game.getPlayer(game.getCombat().getDefenderId(getTargetPointer().getFirst(game, source))); + defender = game.getPlayer(getTargetPointer().getFirst(game, source)); } if (defender != null) { defender.loseLife(amount.calculate(game, source, this), game);