forked from External/mage
implement [DA1] More of that Strange Oil (#13019)
This commit is contained in:
parent
63b832b6d6
commit
6047f592cf
3 changed files with 87 additions and 0 deletions
|
|
@ -528,6 +528,7 @@ public class ScryfallImageSupportCards {
|
|||
add("ONE"); // Phyrexia: All Will Be One
|
||||
add("ONC"); // Phyrexia: All Will Be One Commander
|
||||
add("PL23"); // Year of the Rabbit 2023
|
||||
add("DA1"); // Unknown Event
|
||||
add("SLP"); // Secret Lair Showdown
|
||||
add("MOM"); // March of the Machine
|
||||
add("MOC"); // March of the Machine Commander
|
||||
|
|
|
|||
60
Mage.Sets/src/mage/cards/m/MoreOfThatStrangeOil.java
Normal file
60
Mage.Sets/src/mage/cards/m/MoreOfThatStrangeOil.java
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.CounterTargetEffect;
|
||||
import mage.abilities.effects.common.counter.ProliferateEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.TargetSpell;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author tiera3 - based on GetOut
|
||||
*/
|
||||
public final class MoreOfThatStrangeOil extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("creature, artifact, or planeswalker spell");
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
CardType.CREATURE.getPredicate(),
|
||||
CardType.ARTIFACT.getPredicate(),
|
||||
CardType.PLANESWALKER.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public MoreOfThatStrangeOil(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
|
||||
|
||||
// Choose one --
|
||||
// * Proliferate. Draw a card.
|
||||
this.getSpellAbility().addEffect(new ProliferateEffect(false));
|
||||
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
|
||||
this.getSpellAbility().withFirstModeFlavorWord("It's Probably Nothing");
|
||||
|
||||
// * Counter target creature, artifact, or planeswalker spell. Scry 1.
|
||||
Mode mode = new Mode(new CounterTargetEffect());
|
||||
mode.addTarget(new TargetSpell(filter));
|
||||
mode.addEffect(new ScryEffect(1, false));
|
||||
this.getSpellAbility().addMode(mode.withFlavorWord("That Could Actually Be Dangerous"));
|
||||
}
|
||||
|
||||
private MoreOfThatStrangeOil(final MoreOfThatStrangeOil card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MoreOfThatStrangeOil copy() {
|
||||
return new MoreOfThatStrangeOil(this);
|
||||
}
|
||||
}
|
||||
26
Mage.Sets/src/mage/sets/UnknownEvent.java
Normal file
26
Mage.Sets/src/mage/sets/UnknownEvent.java
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
package mage.sets;
|
||||
|
||||
import mage.cards.ExpansionSet;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.SetType;
|
||||
|
||||
/**
|
||||
* @author tiera3
|
||||
*/
|
||||
public final class UnknownEvent extends ExpansionSet {
|
||||
|
||||
private static final UnknownEvent instance = new UnknownEvent();
|
||||
|
||||
public static UnknownEvent getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private UnknownEvent() {
|
||||
super("Unknown Event", "DA1", ExpansionSet.buildDate(2023, 2, 15), SetType.JOKE_SET);
|
||||
this.hasBasicLands = false;
|
||||
this.hasBoosters = false;
|
||||
|
||||
cards.add(new SetCardInfo("More of That Strange Oil", "CU13", Rarity.COMMON, mage.cards.m.MoreOfThatStrangeOil.class));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue