Menu

Submission for Longhorn Firebeast

103

Config

name=Longhorn Firebeast
image=http://mtgimage.com/card/longhorn%20firebeast.jpg
value=2.500
rarity=C
type=Creature
subtype=Elemental,Ox,Beast
cost={2}{R}
pt=3/2
timing=main
requires_groovy_code
oracle=When Longhorn Firebeast enters the battlefield, any opponent may have it deal 5 damage to him or her. If a player does, sacrifice Longhorn Firebeast.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                permanent.getOpponent(),
                new MagicMayChoice(),
                this,
                "PN may\$ have SN deal 5 damage to him or her. If a he or she does, sacrifice SN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                final MagicDamage damage=new MagicDamage(event.getSource(),event.getPlayer(),5);
                game.doAction(new MagicDealDamageAction(damage));
                game.doAction(new MagicSacrificeAction(event.getPermanent()));
            } 
        }
    }
]
Pushed