Merge pull request #2010 from shootbot/master

Fixed Leeching Sliver bug
This commit is contained in:
LevelX2 2016-06-17 14:10:40 +02:00 committed by GitHub
commit ac989ddf36
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ public class LeechingSliver extends CardImpl {
this.toughness = new MageInt(1); this.toughness = new MageInt(1);
// Whenever a Sliver you control attacks, defending player loses 1 life. // 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) { public LeechingSliver(final LeechingSliver card) {

View file

@ -77,7 +77,7 @@ public class LoseLifeDefendingPlayerEffect extends OneShotEffect {
if (attackerIsSource) { if (attackerIsSource) {
defender = game.getPlayer(game.getCombat().getDefenderId(source.getSourceId())); defender = game.getPlayer(game.getCombat().getDefenderId(source.getSourceId()));
} else { } else {
defender = game.getPlayer(game.getCombat().getDefenderId(getTargetPointer().getFirst(game, source))); defender = game.getPlayer(getTargetPointer().getFirst(game, source));
} }
if (defender != null) { if (defender != null) {
defender.loseLife(amount.calculate(game, source, this), game); defender.loseLife(amount.calculate(game, source, this), game);