implement [MKM] Behind the Mask

This commit is contained in:
xenohedron 2024-02-04 13:44:50 -05:00
parent 7894abd0bb
commit caf3e5c16a
2 changed files with 54 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));