Package mage.abilities.effects.common.combat

Examples of mage.abilities.effects.common.combat.AttacksIfAbleAllEffect


        this.addAbility(new BushidoAbility(new AttackingCreatureCount("the number of attacking creatures")));

        // Creatures your opponents control attack each turn if able.
        FilterCreaturePermanent filter = new FilterCreaturePermanent("Creatures your opponents control");
        filter.add(new ControllerPredicate(TargetController.OPPONENT));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new AttacksIfAbleAllEffect(filter)));

    }
View Full Code Here


        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Other Goblin creatures you control attack each turn if able.
        Effect effect = new AttacksIfAbleAllEffect(otherGoblinFilter);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
       
        // At the beginning of combat on your turn, put a 1/1 red Goblin creature token with haste onto the battlefield.
        this.addAbility(new BeginningOfCombatTriggeredAbility(new CreateTokenEffect(new GoblinToken()), TargetController.YOU, false));
       
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.combat.AttacksIfAbleAllEffect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.