Menu

Submission for Hypnotic Cloud

67

Config

name=Hypnotic Cloud
image=http://mtgimage.com/card/hypnotic%20cloud.jpg
value=2.500
rarity=C
type=Sorcery
cost={1}{B}
ability=Kicker {4}
timing=main
requires_groovy_code
oracle=Kicker {4}. Target player discards a card. If Hypnotic Cloud was kicked, that player discards three cards instead.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_PLAYER,
                this,
                "Target player\$ discards a card. " +
                "If SN was kicked, that player discards 3 cards instead."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                int amount = event.isKicked() ? 3 : 1;
                game.addEvent(new MagicDiscardEvent(event.getSource(), it, amount));
            });
        }
    }
]
Pushed