[BRO] Implemented Flow of Knowledge

This commit is contained in:
Daniel Bomar 2022-11-01 15:22:23 -05:00
parent 72f25dd681
commit 97e70c31ce
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,38 @@
package mage.cards.f;
import java.util.UUID;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.discard.DiscardControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.common.FilterControlledPermanent;
/**
*
* @author weirddan455
*/
public final class FlowOfKnowledge extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.ISLAND);
public FlowOfKnowledge(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{4}{U}");
// Draw a card for each Island you control, then discard two cards.
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(new PermanentsOnBattlefieldCount(filter)));
this.getSpellAbility().addEffect(new DiscardControllerEffect(2).concatBy(", then"));
}
private FlowOfKnowledge(final FlowOfKnowledge card) {
super(card);
}
@Override
public FlowOfKnowledge copy() {
return new FlowOfKnowledge(this);
}
}

View file

@ -46,6 +46,7 @@ public final class TheBrothersWar extends ExpansionSet {
cards.add(new SetCardInfo("Fade from History", 177, Rarity.RARE, mage.cards.f.FadeFromHistory.class));
cards.add(new SetCardInfo("Fallaji Dragon Engine", 159, Rarity.UNCOMMON, mage.cards.f.FallajiDragonEngine.class));
cards.add(new SetCardInfo("Feldon, Ronom Excavator", 135, Rarity.RARE, mage.cards.f.FeldonRonomExcavator.class));
cards.add(new SetCardInfo("Flow of Knowledge", 49, Rarity.UNCOMMON, mage.cards.f.FlowOfKnowledge.class));
cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Gaea's Courser", 181, Rarity.UNCOMMON, mage.cards.g.GaeasCourser.class));
cards.add(new SetCardInfo("Giant Growth", 183, Rarity.COMMON, mage.cards.g.GiantGrowth.class));