Menu

Submission for Lys Alana Bowmaster

130

Comment

tested in magarena 1.44

Config

name=Lys Alana Bowmaster
url=http://magiccards.info/mt/en/130.html
image=http://magiccards.info/scans/en/mt/130.jpg
value=2.971
rarity=C
type=Creature
subtype=Elf,Archer
cost={2}{G}
pt=2/2
ability=reach
timing=main
requires_groovy_code

Script

[
    new MagicWhenOtherSpellIsCastTrigger() {
        @Override
        public boolean accept(final MagicPermanent permanent, final MagicCardOnStack spell) {
            return spell.hasSubType(MagicSubType.Elf);
        }
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicCardOnStack cardOnStack) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice(MagicTargetChoice.NEG_TARGET_CREATURE_WITH_FLYING),
                new MagicDamageTargetPicker(2),
                this,
                "PN may\$ have SN deal 2 damage " +
                "to target creature\$ with flying."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTargetPermanent(game,new MagicPermanentAction() {
                    public void doAction(final MagicPermanent creature) {
                        final MagicDamage damage = new MagicDamage(event.getPermanent(),creature,2);
                        game.doAction(new MagicDealDamageAction(damage));
                    }
                });
            }
        }
    }
]
Pushed