Menu

Submission for Windwright Mage

208

Comment

tested in magarena 1.43

Config

name=Windwright Mage
url=http://magiccards.info/ala/en/208.html
image=http://magiccards.info/scans/en/ala/208.jpg
value=2.964
rarity=C
type=Artifact,Creature
subtype=Human,Wizard
cost={W}{U}{B}
pt=2/2
ability=lifelink
timing=artifact
requires_groovy_code

Script

def LEAST_ONE_ARTIFACT_IN_GRAVEYARD = new MagicCondition() {
    public boolean accept(final MagicSource source) {
        final MagicGame game = source.getGame();
        final MagicPlayer player = source.getController();
        return game.filterCards(player, MagicTargetFilter.TARGET_ARTIFACT_CARD_FROM_GRAVEYARD ).size() >= 1;
    }
};
[
    new MagicStatic(MagicLayer.Ability) {
        @Override
        public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
            if (LEAST_ONE_ARTIFACT_IN_GRAVEYARD.accept(permanent)) {
                flags.add(MagicAbility.Flying);
            }
        }
    }
]
Pushed