mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
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:
parent
8c017fe3d2
commit
1bae2b0b1e
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue