mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implemented Lucky Clover
This commit is contained in:
parent
bcc72d4686
commit
d557e6a27e
3 changed files with 47 additions and 0 deletions
45
Mage.Sets/src/mage/cards/l/LuckyClover.java
Normal file
45
Mage.Sets/src/mage/cards/l/LuckyClover.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.CopyTargetSpellEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.common.FilterInstantOrSorcerySpell;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class LuckyClover extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter
|
||||
= new FilterInstantOrSorcerySpell("an Adventure instant or sorcery spell");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate(SubType.ADVENTURE));
|
||||
}
|
||||
|
||||
public LuckyClover(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
// Whenever you cast an Adventure instant or sorcery spell, copy it. You may choose new targets for the copy.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||
new CopyTargetSpellEffect(true).withSpellName("it"),
|
||||
filter, false, true
|
||||
));
|
||||
}
|
||||
|
||||
private LuckyClover(final LuckyClover card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LuckyClover copy() {
|
||||
return new LuckyClover(this);
|
||||
}
|
||||
}
|
|
@ -129,6 +129,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Lonesome Unicorn", 21, Rarity.COMMON, mage.cards.l.LonesomeUnicorn.class));
|
||||
cards.add(new SetCardInfo("Lost Legion", 94, Rarity.COMMON, mage.cards.l.LostLegion.class));
|
||||
cards.add(new SetCardInfo("Lovestruck Beast", 165, Rarity.RARE, mage.cards.l.LovestruckBeast.class));
|
||||
cards.add(new SetCardInfo("Lucky Clover", 226, Rarity.UNCOMMON, mage.cards.l.LuckyClover.class));
|
||||
cards.add(new SetCardInfo("Mace of the Valiant", 314, Rarity.RARE, mage.cards.m.MaceOfTheValiant.class));
|
||||
cards.add(new SetCardInfo("Maraleaf Pixie", 196, Rarity.UNCOMMON, mage.cards.m.MaraleafPixie.class));
|
||||
cards.add(new SetCardInfo("Maraleaf Rider", 166, Rarity.COMMON, mage.cards.m.MaraleafRider.class));
|
||||
|
|
|
@ -10,6 +10,7 @@ import java.util.stream.Collectors;
|
|||
public enum SubType {
|
||||
|
||||
//205.3k Instants and sorceries share their lists of subtypes; these subtypes are called spell types.
|
||||
ADVENTURE("Adventure", SubTypeSet.SpellType),
|
||||
ARCANE("Arcane", SubTypeSet.SpellType),
|
||||
TRAP("Trap", SubTypeSet.SpellType),
|
||||
// 205.3i: Lands have their own unique set of subtypes; these subtypes are called land types.
|
||||
|
|
Loading…
Reference in a new issue