Menu

Submission for Conversion

9

Config

name=Conversion
image=http://mtgimage.com/card/conversion.jpg
value=2.500
rarity=U
type=Enchantment
cost={2}{W}{W}
ability=At the beginning of your upkeep, you may pay {W}{W}. If you don't, sacrifice SN.
timing=main
requires_groovy_code
oracle=At the beginning of your upkeep, sacrifice Conversion unless you pay {W}{W}. All Mountains are Plains.

Script

[
    new MagicStatic(
        MagicLayer.Ability,
        MagicTargetFilterFactory.single("Mountain")
    )  {
        @Override
        public void modAbilityFlags(final MagicPermanent source, final MagicPermanent permanent, final Set<MagicAbility> flags) {
            permanent.loseAllAbilities();
            permanent.addAbility(new MagicTapManaActivation(MagicManaType.getList("{W}")));
        }
    },
    new MagicStatic(
        MagicLayer.Type,
        MagicTargetFilterFactory.single("Mountain")
    )  {
        @Override
        public void modSubTypeFlags(final MagicPermanent permanent, final Set<MagicSubType> flags) {
          flags.clear();
          flags.add(MagicSubType.Plains);
        }
    }
]
Pushed