Menu

Submission for Sharding Sphinx

56

Comment

tested in magarena 1.43

Config

name=Sharding Sphinx
url=http://magiccards.info/ala/en/55.html
image=http://magiccards.info/scans/en/ala/55.jpg
value=3.702
rarity=R
type=Artifact,Creature
subtype=Sphinx
cost={4}{U}{U}
pt=4/4
ability=flying
timing=artifact
requires_groovy_code

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            final MagicSource source = damage.getSource();
            return (damage.isCombat() &&
                    permanent.isOpponent(damage.getTarget()) &&
					source.hasType(MagicType.Artifact)) ?
                new MagicEvent(
                    permanent,
                    source.getController(),
                    new MagicSimpleMayChoice(
                        MagicSimpleMayChoice.PLAY_TOKEN,
                        1,
                        MagicSimpleMayChoice.DEFAULT_YES
                    ),
                    this,
                    "PN may\$ put a 1/1 blue Thopter artifact creature token with flying onto the battlefield."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                game.doAction(new MagicPlayTokenAction(
                    event.getPlayer(),
                    TokenCardDefinitions.get("1/1 blue Thopter artifact creature token with flying")
                ));
            }
        }
    }
]
Pushed