Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.DestroyAllEffect


    public CreepingCorrosion(UUID ownerId) {
        super(ownerId, 78, "Creeping Corrosion", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{2}{G}{G}");
        this.expansionSetCode = "MBS";
        this.color.setGreen(true);
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterArtifactPermanent()));
    }
View Full Code Here


        this.expansionSetCode = "DDL";

        this.color.setWhite(true);

        // Destroy all creatures that aren't enchanted. They can't be regenerated.
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter, true));
    }
View Full Code Here

        getLeftHalfCard().getSpellAbility().addTarget(new TargetPermanent(filter2));

        // Bust
        // Destroy all lands.
        getRightHalfCard().getColor().setRed(true);
        getRightHalfCard().getSpellAbility().addEffect(new DestroyAllEffect(new FilterLandPermanent()));

    }
View Full Code Here

        this.expansionSetCode = "PLC";

        this.color.setBlack(true);

        // Destroy all creatures. They can't be regenerated.
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterCreaturePermanent("creatures"), true));
    }
View Full Code Here

        // If you control a Forest, rather than pay Reverent Silence's mana cost, you may have each other player gain 6 life.
        this.addAbility(new AlternativeCostSourceAbility(new GainLifePlayersCost(6), new PermanentsOnTheBattlefieldCondition(filter)));
       
        // Destroy all enchantments.
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterEnchantmentPermanent("enchantments")));
    }
View Full Code Here

        Spell spell = game.getState().getStack().getSpell(getTargetPointer().getFirst(game, source));
        if (spell != null) {
            int cmc = spell.getConvertedManaCost();
            FilterPermanent filter = new FilterPermanent();
            filter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.Equal, cmc));
            return new DestroyAllEffect(filter).apply(game, source);
        }
        return false;
    }
View Full Code Here

        this.color.setWhite(true);

        // At the beginning of your upkeep, if there are four or more creatures on the battlefield, sacrifice Planar Collapse and destroy all creatures. They can't be regenerated.
        TriggeredAbility ability  = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, false);
        ability.addEffect(new DestroyAllEffect(new FilterCreaturePermanent(), true));
        PlanarCollapseCondition contition = new PlanarCollapseCondition();
        this.addAbility(new ConditionalTriggeredAbility(ability, contition, "At the beginning of your upkeep, if there are four or more creatures on the battlefield, sacrifice {this} and destroy all creatures. They can't be regenerated"));
       
    }
View Full Code Here

        this.color.setWhite(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(5);

        addAbility(FlyingAbility.getInstance());
        addAbility(new EntersBattlefieldTriggeredAbility(new DestroyAllEffect(tappedFilter), false));
    }
View Full Code Here

        this.color.setRed(true);

        // At the beginning of your upkeep, if there are seven or more lands on the battlefield, sacrifice Impending Disaster and destroy all lands.
        TriggeredAbility ability  = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, false);
        ability.addEffect(new DestroyAllEffect(new FilterLandPermanent()));
        ImpendingDisasterCondition contition = new ImpendingDisasterCondition();
        this.addAbility(new ConditionalTriggeredAbility(ability, contition, "At the beginning of your upkeep, if there are seven or more lands on the battlefield, sacrifice {this} and destroy all lands"));
       
    }
View Full Code Here

        Ability ability = new CantCounterAbility();
        ability.setRuleAtTheTop(true);
        this.addAbility(ability);

        // Destroy all creatures.
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterCreaturePermanent()));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.DestroyAllEffect

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.