Implemented Bond of Flourishing

This commit is contained in:
Evan Kranzler 2019-04-13 21:28:50 -04:00
parent a4d035100c
commit 5e06262591
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,40 @@
package mage.cards.b;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.effects.common.LookLibraryAndPickControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterCard;
import mage.filter.common.FilterPermanentCard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BondOfFlourishing extends CardImpl {
private static final FilterCard filter = new FilterPermanentCard();
public BondOfFlourishing(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
// Look at the top three card of your library. You may reveal a permanent card from among them and put it into your hand. Put the rest on the bottom of your library in any order. You gain 3 life.
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(
new StaticValue(3), false,
new StaticValue(1), filter, false
));
this.getSpellAbility().addEffect(new GainLifeEffect(3).setText("You gain 3 life."));
}
private BondOfFlourishing(final BondOfFlourishing card) {
super(card);
}
@Override
public BondOfFlourishing copy() {
return new BondOfFlourishing(this);
}
}

View file

@ -39,6 +39,7 @@ public final class WarOfTheSpark extends ExpansionSet {
cards.add(new SetCardInfo("Blindblast", 114, Rarity.COMMON, mage.cards.b.Blindblast.class));
cards.add(new SetCardInfo("Bloom Hulk", 154, Rarity.COMMON, mage.cards.b.BloomHulk.class));
cards.add(new SetCardInfo("Bolt Bend", 115, Rarity.UNCOMMON, mage.cards.b.BoltBend.class));
cards.add(new SetCardInfo("Bond of Flourishing", 155, Rarity.UNCOMMON, mage.cards.b.BondOfFlourishing.class));
cards.add(new SetCardInfo("Bond of Insight", 43, Rarity.UNCOMMON, mage.cards.b.BondOfInsight.class));
cards.add(new SetCardInfo("Bulwark Giant", 7, Rarity.COMMON, mage.cards.b.BulwarkGiant.class));
cards.add(new SetCardInfo("Burning Prophet", 117, Rarity.COMMON, mage.cards.b.BurningProphet.class));