mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
[DSC] Implement They Came from the Pipes
This commit is contained in:
parent
a3ad35673e
commit
c720643e9b
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/t/TheyCameFromThePipes.java
Normal file
49
Mage.Sets/src/mage/cards/t/TheyCameFromThePipes.java
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldAllTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.keyword.ManifestDreadEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.card.FaceDownPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TheyCameFromThePipes extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledCreaturePermanent("a face-down creature you control");
|
||||
|
||||
static {
|
||||
filter.add(FaceDownPredicate.instance);
|
||||
}
|
||||
|
||||
public TheyCameFromThePipes(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{4}{U}");
|
||||
|
||||
// When They Came from the Pipes enters, manifest dread twice.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new ManifestDreadEffect());
|
||||
ability.addEffect(new ManifestDreadEffect().setText("twice"));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever a face-down creature you control enters, draw a card.
|
||||
this.addAbility(new EntersBattlefieldAllTriggeredAbility(new DrawCardSourceControllerEffect(1), filter));
|
||||
}
|
||||
|
||||
private TheyCameFromThePipes(final TheyCameFromThePipes card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheyCameFromThePipes copy() {
|
||||
return new TheyCameFromThePipes(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -33,5 +33,6 @@ public final class DuskmournHouseOfHorrorCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Growth Spiral", 88, Rarity.COMMON, mage.cards.g.GrowthSpiral.class));
|
||||
cards.add(new SetCardInfo("Living Death", 373, Rarity.MYTHIC, mage.cards.l.LivingDeath.class));
|
||||
cards.add(new SetCardInfo("Sol Ring", 94, Rarity.COMMON, mage.cards.s.SolRing.class));
|
||||
cards.add(new SetCardInfo("They Came from the Pipes", 14, Rarity.RARE, mage.cards.t.TheyCameFromThePipes.class));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue