Menu

Submission for Battle Brawler

63

Config

name=Battle Brawler
image=http://mtgimage.com/card/battle%20brawler.jpg
value=2.500
rarity=U
type=Creature
subtype=Orc,Warrior
cost={1}{B}
pt=2/2
timing=main
requires_groovy_code
oracle=As long as you control a red or white permanent, Battle Brawler gets +1/+0 and has first strike.

Script

[
    new MagicStatic(MagicLayer.Ability) {
        @Override
        public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
            permanent.addAbility(MagicAbility.FirstStrike, flags);
        }
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().controlsPermanent(MagicColor.Red) ||
            source.getController().controlsPermanent(MagicColor.White);
        }
    },
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
            pt.add(1, 0);
        }
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().controlsPermanent(MagicColor.Red) ||
            source.getController().controlsPermanent(MagicColor.White);
        }
    }
]
Pushed