From 98f79e6a88c71d28921978da2b66f992a171c233 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 29 Jan 2018 16:57:25 +0100 Subject: [PATCH] * Vermiculos - Fixed that its ability did only trigger for artifacts entering that are controlled by the controller of Vermiculos instead of all artifacts entering. --- Mage.Sets/src/mage/cards/v/Vermiculos.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Mage.Sets/src/mage/cards/v/Vermiculos.java b/Mage.Sets/src/mage/cards/v/Vermiculos.java index f1986bf9c0..02768ee322 100644 --- a/Mage.Sets/src/mage/cards/v/Vermiculos.java +++ b/Mage.Sets/src/mage/cards/v/Vermiculos.java @@ -34,33 +34,26 @@ import mage.abilities.effects.common.continuous.BoostSourceEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; -import mage.constants.SubType; import mage.constants.Duration; -import mage.constants.TargetController; +import mage.constants.SubType; import mage.constants.Zone; -import mage.filter.FilterPermanent; import mage.filter.common.FilterArtifactPermanent; -import mage.filter.predicate.permanent.ControllerPredicate; /** * * @author fireshoes */ public class Vermiculos extends CardImpl { - - private static final FilterPermanent filter = new FilterArtifactPermanent("an artifact"); - static { - filter.add(new ControllerPredicate(TargetController.YOU)); - } public Vermiculos(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}"); + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}"); this.subtype.add(SubType.HORROR); this.power = new MageInt(1); this.toughness = new MageInt(1); // Whenever an artifact enters the battlefield, Vermiculos gets +4/+4 until end of turn. - this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, 4, Duration.EndOfTurn), filter, false)); + this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.BATTLEFIELD, new BoostSourceEffect(4, 4, Duration.EndOfTurn), + new FilterArtifactPermanent("an artifact"), false)); } public Vermiculos(final Vermiculos card) {