Menu

Submission for Fanatic of Mogis

121

Config

name=Fanatic of Mogis
url=http://magiccards.info/ths/en/121.html
image=http://magiccards.info/scans/en/ths/121.jpg
value=2.500
rarity=U
type=Creature
subtype=Minotaur,Shaman
cost={3}{R}
pt=4/2
timing=main
name=Fanatic of Mogis
url=http://magiccards.info/ths/en/121.html
image=http://magiccards.info/scans/en/ths/121.jpg
value=2.395
rarity=U
type=Creature
subtype=Minotaur,Shaman
cost={3}{R}
pt=4/2
timing=main
requires_groovy_code

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                this,
                "SN deals damage to each opponent equal to PN's devotion to red. ("+permanent.getController().getDevotion(MagicColor.Red)+")"
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getPlayer().getDevotion(MagicColor.Red);
            game.doAction(new MagicDealDamageAction(
                new MagicDamage(
                    event.getSource(),
                    event.getPlayer().getOpponent(),
                    amount
                )
            ));
        }
    }
]
Pushed