Menu

Submission for Predator's Rapport

129

Comment

status: being tested... :)

Config

name=Predator's Rapport
image=http://magiccards.info/scans/en/gtc/129.jpg
value=2.895
rarity=C
type=Instant
cost={2}{G}
timing=main
oracle=Choose target creature you control. You gain life equal to that creature's power plus its toughness.
requires_groovy_code

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
                this,
				"PN gain life equal to that creature\$'s power plus its toughness."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPlayer player = event.getPlayer();
            event.processTargetPermanent(game, {
                final MagicPermanent creature ->
				game.doAction(new MagicChangeLifeAction(player,creature.getPower()+creature.getToughness()));
            });
        }
    }
]
Pushed