Menu

Submission for Call for Blood

63

Config

name=Call for Blood
image=http://magiccards.info/scans/en/bok/63.jpg
value=1.391
rarity=C
type=Instant
subtype=Arcane
cost={4}{B}
ability=As an additional cost to cast SN, sacrifice a creature.
timing=removal
requires_groovy_code
oracle=As an additional cost to cast Call for Blood, sacrifice a creature.\nTarget creature gets -X/-X until end of turn, where X is the sacrificed creature's power.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                NEG_TARGET_CREATURE,
                payedCost.getTarget(),
                this,
                "Target creature gets -X/-X until end of turn, where X is RN's power."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount=event.getRefPermanent().getPower();
            game.logAppendX(event.getPlayer(),amount);
            event.processTargetPermanent(game, {
                game.doAction(new ChangeTurnPTAction(it, -amount, -amount));
            });
        }
    }
]
Pushed