Examples of DestroyAllEffect


Examples of mage.abilities.effects.common.DestroyAllEffect

        // Destroy all creatures. They can't be regenerated.
        // Threshold - If seven or more cards are in your graveyard, instead destroy all creatures, then put two 1/1 white Spirit creature tokens with flying onto the battlefield. Creatures destroyed this way can't be regenerated.
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new KirtarsWrathEffect(),
                new DestroyAllEffect(new FilterCreaturePermanent("all creatures"), true),
                new CardsInControllerGraveCondition(7),
                "Destroy all creatures. They can't be regenerated.<br/><br/><i>Threshold<i/> - If seven or more cards are in your graveyard, instead destroy all creatures, then put two 1/1 white Spirit creature tokens with flying onto the battlefield. Creatures destroyed this way can't be regenerated"));

    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

        return new KirtarsWrathEffect(this);
    }

    @Override
    public boolean apply(Game game, Ability source) {
        new DestroyAllEffect(new FilterCreaturePermanent("all creatures"), true).apply(game, source);
        return new CreateTokenEffect(new SpiritWhiteToken(), 2).apply(game, source);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent sourcePermanent = game.getPermanent(source.getSourceId());
        if (sourcePermanent != null) {
            if (sourcePermanent.sacrifice(source.getSourceId(), game)) {
                return new DestroyAllEffect(new FilterNonlandPermanent()).apply(game, source);
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

        this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(new AddCountersSourceEffect(CounterType.DIVINITY.createInstance()), new CastFromHandCondition(), ""), "{this} enters the battlefield with a divinity counter on it if you cast it from your hand"));
        // Myojin of Infinite Rage is indestructible as long as it has a divinity counter on it.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield),
                new SourceHasCounterCondition(CounterType.DIVINITY), "{this} is indestructible as long as it has a divinity counter on it")));
        // Remove a divinity counter from Myojin of Infinite Rage: Destroy all lands.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter), new RemoveCountersSourceCost(CounterType.DIVINITY.createInstance())));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

        this.expansionSetCode = "ULG";

        this.color.setWhite(true);

        // Destroy all artifacts and enchantments.
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

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

        // Destroy all blocking creatures and all blocked creatures.
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
       
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

        // Trample
        this.addAbility(TrampleAbility.getInstance());
       
        // When Child of Alara dies, destroy all nonland permanents. They can't be regenerated.
        this.addAbility(new DiesTriggeredAbility(new DestroyAllEffect(new FilterNonlandPermanent("nonland permanents"), true)));
       
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

        // When Eye of Doom enters the battlefield, each player chooses a nonland permanent and puts a doom counter on it.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new EyeOfDoomEffect(),false));

        // {2}, {tap}, Sacrifice Eye of Doom: Destroy each permanent with a doom counter on it.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

        this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(new AddCountersSourceEffect(CounterType.DIVINITY.createInstance()), new CastFromHandCondition(), ""), "{this} enters the battlefield with a divinity counter on it if you cast it from your hand"));
        // Myojin of Cleansing Fire is indestructible as long as it has a divinity counter on it.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield),
                new SourceHasCounterCondition(CounterType.DIVINITY), "{this} is indestructible as long as it has a divinity counter on it")));
        // Remove a divinity counter from Myojin of Cleansing Fire: Destroy all other creatures.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyAllEffect(filter), new RemoveCountersSourceCost(CounterType.DIVINITY.createInstance())));
    }
View Full Code Here

Examples of mage.abilities.effects.common.DestroyAllEffect

    public Cleanfall(UUID ownerId) {
        super(ownerId, 6, "Cleanfall", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{W}");
        this.expansionSetCode = "CHK";
        this.subtype.add("Arcane");
        this.color.setWhite(true);
        this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
    }
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.