diff --git a/Mage.Sets/src/mage/cards/b/BehindTheMask.java b/Mage.Sets/src/mage/cards/b/BehindTheMask.java new file mode 100644 index 00000000000..bcfb581e219 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BehindTheMask.java @@ -0,0 +1,53 @@ +package mage.cards.b; + +import mage.abilities.condition.common.CollectedEvidenceCondition; +import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect; +import mage.abilities.keyword.CollectEvidenceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; +import mage.game.permanent.token.custom.CreatureToken; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author xenohedron + */ +public final class BehindTheMask extends CardImpl { + + public BehindTheMask(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}"); + + // As an additional cost to cast this spell, you may collect evidence 6. + this.addAbility(new CollectEvidenceAbility(6)); + + // Until end of turn, target artifact or creature becomes an artifact creature with base power and toughness 4/3. + // If evidence was collected, it has base power and toughness 1/1 until end of turn instead. + this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE)); + this.getSpellAbility().addEffect(new ConditionalContinuousEffect( + new BecomesCreatureTargetEffect(new CreatureToken(1, 1).withType(CardType.ARTIFACT), + false, false, Duration.EndOfTurn + ), + new BecomesCreatureTargetEffect(new CreatureToken(4, 3).withType(CardType.ARTIFACT), + false, false, Duration.EndOfTurn + ), + CollectedEvidenceCondition.instance, + "Until end of turn, target artifact or creature becomes an artifact creature with base power and toughness 4/3. " + + "If evidence was collected, it has base power and toughness 1/1 until end of turn instead." + )); + + } + + private BehindTheMask(final BehindTheMask card) { + super(card); + } + + @Override + public BehindTheMask copy() { + return new BehindTheMask(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java b/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java index 3a8f076b303..66c3153ba51 100644 --- a/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java +++ b/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java @@ -44,6 +44,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet { cards.add(new SetCardInfo("Axebane Ferox", 153, Rarity.RARE, mage.cards.a.AxebaneFerox.class)); cards.add(new SetCardInfo("Barbed Servitor", 77, Rarity.RARE, mage.cards.b.BarbedServitor.class)); cards.add(new SetCardInfo("Basilica Stalker", 78, Rarity.COMMON, mage.cards.b.BasilicaStalker.class)); + cards.add(new SetCardInfo("Behind the Mask", 39, Rarity.COMMON, mage.cards.b.BehindTheMask.class)); cards.add(new SetCardInfo("Benthic Criminologists", 40, Rarity.COMMON, mage.cards.b.BenthicCriminologists.class)); cards.add(new SetCardInfo("Bolrac-Clan Basher", 112, Rarity.UNCOMMON, mage.cards.b.BolracClanBasher.class)); cards.add(new SetCardInfo("Branch of Vitu-Ghazi", 258, Rarity.UNCOMMON, mage.cards.b.BranchOfVituGhazi.class));