diff --git a/Mage.Sets/src/mage/cards/c/CunningNightbonder.java b/Mage.Sets/src/mage/cards/c/CunningNightbonder.java new file mode 100644 index 0000000000..0769036514 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CunningNightbonder.java @@ -0,0 +1,62 @@ +package mage.cards.c; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.CantBeCounteredControlledEffect; +import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect; +import mage.abilities.keyword.FlashAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterCard; +import mage.filter.FilterSpell; +import mage.filter.predicate.Predicate; +import mage.filter.predicate.mageobject.AbilityPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class CunningNightbonder extends CardImpl { + + private static final FilterCard filter = new FilterCard(); + private static final FilterSpell filter2 = new FilterSpell(); + private static final Predicate predicate = new AbilityPredicate(FlashAbility.class); + + static { + filter.add(predicate); + filter2.add(predicate); + } + + public CunningNightbonder(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U/B}{U/B}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Flash + this.addAbility(FlashAbility.getInstance()); + + // Spells you cast with flash cost {1} less to cast and can't be countered. + Ability ability = new SimpleStaticAbility(new SpellsCostReductionControllerEffect(filter, 1) + .setText("spells you cast with flash cost {1} less to cast")); + ability.addEffect(new CantBeCounteredControlledEffect(filter2, Duration.WhileOnBattlefield) + .setText("and can't be countered")); + this.addAbility(ability); + } + + private CunningNightbonder(final CunningNightbonder card) { + super(card); + } + + @Override + public CunningNightbonder copy() { + return new CunningNightbonder(this); + } +} diff --git a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java index 3ffef97b53..fa3c62a618 100644 --- a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java +++ b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java @@ -81,6 +81,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet { cards.add(new SetCardInfo("Colossification", 148, Rarity.RARE, mage.cards.c.Colossification.class)); cards.add(new SetCardInfo("Crystalline Giant", 234, Rarity.RARE, mage.cards.c.CrystallineGiant.class)); cards.add(new SetCardInfo("Cubwarden", 7, Rarity.RARE, mage.cards.c.Cubwarden.class)); + cards.add(new SetCardInfo("Cunning Nightbonder", 219, Rarity.UNCOMMON, mage.cards.c.CunningNightbonder.class)); cards.add(new SetCardInfo("Death's Oasis", 182, Rarity.RARE, mage.cards.d.DeathsOasis.class)); cards.add(new SetCardInfo("Dire Tactics", 183, Rarity.UNCOMMON, mage.cards.d.DireTactics.class)); cards.add(new SetCardInfo("Dirge Bat", 84, Rarity.RARE, mage.cards.d.DirgeBat.class));