Menu

Submission for Sanguimancy

81

Config

name=Sanguimancy
url=http://magiccards.info/bng/en/81.html
image=http://magiccards.info/scans/en/bng/81.jpg
value=3.581
rarity=U
type=Sorcery
cost={4}{B}
timing=draw
requires_groovy_code

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Draw cards and lose life equal to PN's devotion to black. ("+cardOnStack.getController().getDevotion(MagicColor.Black)+")"
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getPlayer().getDevotion(MagicColor.Black);
            final MagicPlayer player = event.getPlayer();
            game.doAction(new MagicDrawAction(player,amount));
            game.doAction(new MagicChangeLifeAction(player,-amount));
        }
    }
]
Pushed