Menu

Submission for Rishadan Cutpurse

93

Config

name=Rishadan Cutpurse
image=http://mtgimage.com/card/rishadan%20cutpurse.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Pirate
cost={2}{U}
pt=1/1
timing=main
requires_groovy_code
oracle=When Rishadan Cutpurse enters the battlefield, each opponent sacrifices a permanent unless he or she pays {1}.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
                new MagicEvent(
                    permanent,
                    permanent.getOpponent(),
                    new MagicMayChoice(
                        "Pay {1}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{1}"))
                    ),
                    this,
                    "PN may\$ pay {1}\$. If PN doesn't, PN sacrifices a permanent."
                );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isNo()) {
                game.addEvent(new MagicSacrificePermanentEvent(
                event.getSource(), 
                event.getPermanent().getOpponent(),
                MagicTargetChoice.SACRIFICE_PERMANENT
            ));
            }
        }
    }
]
Pushed