Menu

Submission for Greater Harvester

44

Comment

status: testing...

Config

name=Greater Harvester
url=http://magiccards.info/dst/en/44.html
image=http://magiccards.info/scans/en/dst/44.jpg
value=3.569
rarity=R
type=Creature
subtype=Horror
cost={2}{B}{B}{B}
pt=5/6
ability=At the beginning of your upkeep, sacrifice a permanent.
timing=main
requires_groovy_code
oracle=At the beginning of your upkeep, sacrifice a permanent.Whenever Greater Harvester deals combat damage to a player, that player sacrifices two permanents.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.getSource() == permanent &&
                    damage.getTarget().isPlayer() &&
                    damage.isCombat()) ?
                new MagicEvent(
                    permanent,
					permanent.getController(),
                    damage.getTarget(),
                    this,
                    "RN sacrifices two permanents."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {			
			game.addEvent(new MagicSacrificePermanentEvent(event.getRefPlayer(),MagicTargetChoice.SACRIFICE_PERMANENT));
			game.addEvent(new MagicSacrificePermanentEvent(event.getRefPlayer(),MagicTargetChoice.SACRIFICE_PERMANENT));
        }
    }
]
Pushed