Menu

Submission for Urza's Rage

169

Config

name=Urza's Rage
url=http://magiccards.info/pvc/en/36.html
image=http://mtgimage.com/card/Urza%27s%20Rage.jpg
value=4.082
removal=3
rarity=R
type=Instant
cost={2}{R}
timing=removal
ability=can't be countered,kicker {8}{R}
requires_groovy_code

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            final int amount = payedCost.isKicked() ? 10 : 3;
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                new MagicDamageTargetPicker(amount),
                this,
                "SN deals 3 damage to target creature or player\$. "+
                "If SN was kicked, instead it deals 10 damage to that creature or player and the damage can't be prevented."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                final MagicTarget target ->
                final int amount = event.isKicked() ? 10 : 3;
                final MagicDamage damage=new MagicDamage(event.getSource(),target,amount);
                if (event.isKicked()) {
			 damage.setUnpreventable();
                 }
                game.doAction(new MagicDealDamageAction(damage));
            });
        }
    }
]
Pushed