Menu

Submission for Putrid Imp

135

Config

name=Putrid Imp
url=http://magiccards.info/pd3/en/1.html
image=http://magiccards.info/scans/en/pd3/1.jpg
value=4.191
rarity=C
type=Creature
subtype=Zombie,Imp
cost={B}
pt=1/1
timing=main
ability=pay Discard a card: SN gains flying until end of turn.
requires_groovy_code

Script

[
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(
                final MagicPermanent source,
                final MagicPermanent permanent,
                final MagicPowerToughness pt) {
            if (MagicCondition.THRESHOLD_CONDITION.accept(permanent)) {
                pt.add(1,1);
            }
        }
    },

    new MagicStatic(MagicLayer.Ability) {
        @Override
        public void modAbilityFlags(
                final MagicPermanent source,
                final MagicPermanent permanent,
                final Set<MagicAbility> flags) {
            if (MagicCondition.THRESHOLD_CONDITION.accept(permanent)) {
                flags.add(MagicAbility.CannotBlock);
            }
        }
    }
]
Pushed