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
This commit is contained in:
shootbot 2016-06-16 19:51:20 +06:00
parent 8c017fe3d2
commit 1bae2b0b1e
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);
// 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) {

View file

@ -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);