Menu

Submission for Rishadan Brigand

92

Config

name=Rishadan Brigand
image=http://mtgimage.com/card/rishadan%20brigand.jpg
value=2.500
rarity=R
type=Creature
subtype=Human,Pirate
cost={4}{U}
pt=3/2
ability=Flying;\
        SN can block only creatures with flying.
timing=main
requires_groovy_code
oracle=Flying. When Rishadan Brigand enters the battlefield, each opponent sacrifices a permanent unless he or she pays {3}. Rishadan Brigand can block only creatures with flying.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
                new MagicEvent(
                    permanent,
                    permanent.getOpponent(),
                    new MagicMayChoice(
                        "Pay {3}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{3}"))
                    ),
                    this,
                    "PN may\$ pay {3}\$. 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