mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Merge pull request #2010 from shootbot/master
Fixed Leeching Sliver bug
This commit is contained in:
commit
ac989ddf36
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