Menu

Submission for Nameless Inversion

128

Comment

tested in magarena 1.43

Config

name=Nameless Inversion
url=http://magiccards.info/lw/en/128.html
image=http://magiccards.info/scans/en/lw/128.jpg
value=4.211
rarity=C
type=Tribal,Instant
subtype=Shapeshifter
ability=changeling
cost={1}{B}
timing=removal
requires_groovy_code

Script

def TP = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
    @Override
	public void modSubTypeFlags(final MagicPermanent permanent, final Set<MagicSubType> flags) {
		flags.removeAll(MagicSubType.ALL_CREATURES);
	}
};
[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.TARGET_CREATURE,
                MagicPumpTargetPicker.create(),
                this,
                "Target creature\$ gets +3/-3, and loses all creature types until the end of the turn."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                MagicPermanent creature ->
                    game.doAction(new MagicBecomesCreatureAction(creature,TP));
					game.doAction(new MagicChangeTurnPTAction(creature,3,-3));
            } as MagicPermanentAction);
        }
    }
]
Pushed