mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[SOI] Fixed Fleeting Memories filter
This commit is contained in:
parent
de383ef486
commit
f6df5afcd0
1 changed files with 77 additions and 70 deletions
|
@ -37,7 +37,8 @@ import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
|
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||||
import mage.target.TargetPlayer;
|
import mage.target.TargetPlayer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,6 +47,12 @@ import mage.target.TargetPlayer;
|
||||||
*/
|
*/
|
||||||
public class FleetingMemories extends CardImpl {
|
public class FleetingMemories extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterControlledPermanent filter = new FilterControlledPermanent("a Clue");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter.add(new SubtypePredicate("Clue"));
|
||||||
|
}
|
||||||
|
|
||||||
public FleetingMemories(UUID ownerId) {
|
public FleetingMemories(UUID ownerId) {
|
||||||
super(ownerId, 62, "Fleeting Memories", Rarity.UNCOMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
|
super(ownerId, 62, "Fleeting Memories", Rarity.UNCOMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{U}");
|
||||||
this.expansionSetCode = "SOI";
|
this.expansionSetCode = "SOI";
|
||||||
|
@ -54,7 +61,7 @@ public class FleetingMemories extends CardImpl {
|
||||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new InvestigateEffect(), false));
|
this.addAbility(new EntersBattlefieldTriggeredAbility(new InvestigateEffect(), false));
|
||||||
|
|
||||||
// Whenever you sacrifice a Clue, target player puts the top three cards of his or her graveyard into his or her graveyard.
|
// Whenever you sacrifice a Clue, target player puts the top three cards of his or her graveyard into his or her graveyard.
|
||||||
Ability ability = new SacrificeAllTriggeredAbility(new PutTopCardOfLibraryIntoGraveTargetEffect(3), new FilterCreaturePermanent("Clue", "a Clue"), TargetController.YOU, false);
|
Ability ability = new SacrificeAllTriggeredAbility(new PutTopCardOfLibraryIntoGraveTargetEffect(3), filter, TargetController.YOU, false);
|
||||||
ability.addTarget(new TargetPlayer());
|
ability.addTarget(new TargetPlayer());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue