Package mage.abilities.effects

Examples of mage.abilities.effects.ContinuousRuleModifiyingEffect


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

        // Target player can't play land cards this turn if {R} was spent to cast Moonhold and can't play creature cards this turn if {W} was spent to cast it.
        ContinuousRuleModifiyingEffect effect = new MoonholdEffect();
        ContinuousRuleModifiyingEffect effect2 = new MoonholdEffect2();
        effect.setText("Target player can't play land cards this turn if {R} was spent to cast {this} ");
        effect2.setText("and can't play creature cards this turn if {W} was spent to cast it.");
        this.getSpellAbility().addEffect(new ConditionalContinuousRuleModifyingEffect(
                effect,
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.R))));
        this.getSpellAbility().addEffect(new ConditionalContinuousRuleModifyingEffect(
                effect2,
View Full Code Here


        super(ownerId, 155, "Neko-Te", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{3}");
        this.expansionSetCode = "BOK";
        this.subtype.add("Equipment");

        // Whenever equipped creature deals damage to a creature, tap that creature. That creature doesn't untap during its controller's untap step for as long as Neko-Te remains on the battlefield.
        ContinuousRuleModifiyingEffect skipUntapEffect = new SkipUntapTargetEffect(Duration.WhileOnBattlefield);
        skipUntapEffect.setText("That creature doesn't untap during its controller's untap step for as long as {this} remains on the battlefield");
        ConditionalContinuousRuleModifyingEffect effect = new ConditionalContinuousRuleModifyingEffect(skipUntapEffect, new SourceOnBattelfieldCondition());
        Ability ability = new DealsDamageToACreatureAttachedTriggeredAbility(new TapTargetEffect("that creature"), false, "equipped creature", false, true);
        ability.addEffect(effect);
        this.addAbility(ability);
        // Whenever equipped creature deals damage to a player, that player loses 1 life.
View Full Code Here

TOP

Related Classes of mage.abilities.effects.ContinuousRuleModifiyingEffect

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.