Menu

Submission for Oona's Blackguard

72

Config

name=Oona's Blackguard
image=http://mtgimage.com/card/oona%27s%20blackguard.jpg
value=2.500
rarity=U
type=Creature
subtype=Faerie,Rogue
cost={1}{B}
pt=1/1
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. Each other Rogue creature you control enters the battlefield with an additional +1/+1 counter on it. Whenever a creature you control with a +1/+1 counter on it deals combat damage to a player, that player discards a card.

Script

[
    new MagicWhenOtherComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent otherPermanent) {
            if (otherPermanent != permanent &&
                otherPermanent.isCreature() &&
                otherPermanent.isFriend(permanent) &&
                otherPermanent.hasSubType(MagicSubType.Rogue)) {
                game.doAction(new MagicChangeCountersAction(otherPermanent,MagicCounterType.PlusOne,1));
            }
            return MagicEvent.NONE;
        }
    },
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.getSource().hasCounters(MagicCounterType.PlusOne) &&
                damage.isCombat() &&
                damage.getSource().isFriend(permanent) &&
                damage.getTarget().isPlayer()) ?
                new MagicEvent(
                    permanent,
                    damage.getTarget(),
                    this,
                    "RN discards a card."
                ):
            MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.addEvent(new MagicDiscardEvent(event.getSource(),event.getRefPlayer()));
        }
    }
]
Pushed