Examples of ExileAllEffect


Examples of mage.abilities.effects.common.ExileAllEffect

        // When Sengir Autocrat enters the battlefield, put three 0/1 black Serf creature tokens onto the battlefield.
        Ability ability = new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SerfToken(), 3));
        this.addAbility(ability);
        // When Sengir Autocrat leaves the battlefield, exile all Serf tokens.
        ability = new LeavesBattlefieldTriggeredAbility(new ExileAllEffect(filter), false);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileAllEffect

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {3}{W}{W}, Sacrifice Major Teroh: Exile all black creatures.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileAllEffect(filter),new ManaCostsImpl("{3}{W}{W}"));
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileAllEffect

        this.color.setBlack(true);
        this.color.setWhite(true);

        // Choose one - Exile all artifacts
        this.getSpellAbility().addEffect(new ExileAllEffect(new FilterArtifactPermanent("artifacts")));
        // or exile all creatures
        Mode mode = new Mode();
        mode.getEffects().add(new ExileAllEffect(new FilterCreaturePermanent("creatures")));
        this.getSpellAbility().addMode(mode);
        // or exile all enchantments
        Mode mode2 = new Mode();
        mode2.getEffects().add(new ExileAllEffect(new FilterEnchantmentPermanent("enchantments")));
        this.getSpellAbility().addMode(mode2);
        // or exile all planeswalkers.
        Mode mode3 = new Mode();
        mode3.getEffects().add(new ExileAllEffect(new FilterPlaneswalkerPermanent("planeswalkers")));
        this.getSpellAbility().addMode(mode3);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileAllEffect

        this.toughness = new MageInt(4);

        // When Hazezon Tamar enters the battlefield, put X 1/1 Sand Warrior creature tokens that are red, green, and white onto the battlefield at the beginning of your next upkeep, where X is the number of lands you control at that time.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new HazezonTamarEntersEffect(), false));
        // When Hazezon leaves the battlefield, exile all Sand Warriors.
        this.addAbility(new LeavesBattlefieldTriggeredAbility(new ExileAllEffect(filter), false));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.