* Filigree Angel - Fixed that the life gain was wrongly calculated for all instead of controlled artifacts.

This commit is contained in:
LevelX2 2014-11-17 08:04:47 +01:00
parent ac30a6b732
commit 80d233f786

View file

@ -40,6 +40,7 @@ import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.constants.Outcome; import mage.constants.Outcome;
import mage.filter.FilterPermanent; import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.CardTypePredicate; import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.game.Game; import mage.game.Game;
import mage.players.Player; import mage.players.Player;
@ -58,7 +59,11 @@ public class FiligreeAngel extends CardImpl {
this.color.setBlue(true); this.color.setBlue(true);
this.power = new MageInt(4); this.power = new MageInt(4);
this.toughness = new MageInt(4); this.toughness = new MageInt(4);
// Flying
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
// When Filigree Angel enters the battlefield, you gain 3 life for each artifact you control.
this.addAbility(new EntersBattlefieldTriggeredAbility(new FiligreeAngelEffect())); this.addAbility(new EntersBattlefieldTriggeredAbility(new FiligreeAngelEffect()));
} }
@ -73,7 +78,8 @@ public class FiligreeAngel extends CardImpl {
} }
class FiligreeAngelEffect extends OneShotEffect { class FiligreeAngelEffect extends OneShotEffect {
private static final FilterPermanent filter = new FilterPermanent();
private static final FilterPermanent filter = new FilterControlledPermanent();
static { static {
filter.add(new CardTypePredicate(CardType.ARTIFACT)); filter.add(new CardTypePredicate(CardType.ARTIFACT));