mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
* Leeching Sliver - Fixed that the triggered ability did not work if a planswalker was attacked (fixes #1858).
This commit is contained in:
parent
b415d5e116
commit
d00f1adf38
1 changed files with 8 additions and 4 deletions
|
|
@ -29,22 +29,26 @@ package mage.sets.magic2015;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksCreatureYouControlTriggeredAbility;
|
||||
import mage.abilities.common.AttacksAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeDefendingPlayerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||
|
||||
/**
|
||||
* @author noxx
|
||||
*/
|
||||
public class LeechingSliver extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("Sliver you control");
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Sliver you control");
|
||||
|
||||
static {
|
||||
filter.add(new ControllerPredicate(TargetController.YOU));
|
||||
filter.add(new SubtypePredicate("Sliver"));
|
||||
}
|
||||
|
||||
|
|
@ -57,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 AttacksCreatureYouControlTriggeredAbility(new LoseLifeDefendingPlayerEffect(1, true), false, filter, true));
|
||||
this.addAbility(new AttacksAllTriggeredAbility(new LoseLifeDefendingPlayerEffect(1, true), false, filter, SetTargetPointer.PERMANENT, true));
|
||||
}
|
||||
|
||||
public LeechingSliver(final LeechingSliver card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue