mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Flower // Flourish
This commit is contained in:
parent
6448f77852
commit
9dc2822133
2 changed files with 63 additions and 0 deletions
62
Mage.Sets/src/mage/cards/f/FlowerFlourish.java
Normal file
62
Mage.Sets/src/mage/cards/f/FlowerFlourish.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SpellAbilityType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FlowerFlourish extends SplitCard {
|
||||
|
||||
private static final FilterCard filter
|
||||
= new FilterCard("basic Forest or Plains card");
|
||||
|
||||
static {
|
||||
filter.add(new SupertypePredicate(SuperType.BASIC));
|
||||
filter.add(Predicates.or(
|
||||
new SubtypePredicate(SubType.FOREST),
|
||||
new SubtypePredicate(SubType.PLAINS)
|
||||
));
|
||||
}
|
||||
|
||||
public FlowerFlourish(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G/W}", "{4}{G}{W}", SpellAbilityType.SPLIT);
|
||||
|
||||
// Flower
|
||||
// Search your library for a basic Forest or Plains card, reveal it, put it into your hand, then shuffle your library.
|
||||
this.getLeftHalfCard().getSpellAbility().addEffect(
|
||||
new SearchLibraryPutInHandEffect(
|
||||
new TargetCardInLibrary(filter), true, true
|
||||
)
|
||||
);
|
||||
|
||||
// Flourish
|
||||
// Creatures you control get +2/+2 until end of turn.
|
||||
this.getRightHalfCard().getSpellAbility().addEffect(
|
||||
new BoostControlledEffect(2, 2, Duration.EndOfTurn)
|
||||
);
|
||||
}
|
||||
|
||||
public FlowerFlourish(final FlowerFlourish card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FlowerFlourish copy() {
|
||||
return new FlowerFlourish(this);
|
||||
}
|
||||
}
|
|
@ -78,6 +78,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Expansion // Explosion", 224, Rarity.RARE, mage.cards.e.ExpansionExplosion.class));
|
||||
cards.add(new SetCardInfo("Find // Finality", 225, Rarity.RARE, mage.cards.f.FindFinality.class));
|
||||
cards.add(new SetCardInfo("Firemind's Research", 171, Rarity.RARE, mage.cards.f.FiremindsResearch.class));
|
||||
cards.add(new SetCardInfo("Flower // Flourish", 226, Rarity.UNCOMMON, mage.cards.f.FlowerFlourish.class));
|
||||
cards.add(new SetCardInfo("Forest", 264, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Fresh-Faced Recruit", 216, Rarity.COMMON, mage.cards.f.FreshFacedRecruit.class));
|
||||
cards.add(new SetCardInfo("Garrison Sergeant", 172, Rarity.COMMON, mage.cards.g.GarrisonSergeant.class));
|
||||
|
|
Loading…
Reference in a new issue