Package mage.abilities.decorator

Examples of mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect


        effect.setText("and discards a card");
        ability.addEffect(effect);
        this.addAbility(ability);
       
        // Hellbent - Skip your upkeep step if you have no cards in hand.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousRuleModifyingEffect(
                new GibberingDescentSkipUpkeepEffect(),
                HellbentCondition.getInstance())));
       
        // Madness {2}{B}{B}
        this.addAbility(new MadnessAbility(this, new ManaCostsImpl<>("{2}{B}{B}")));
View Full Code Here


        // 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,
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.W))));
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.addInfo("Info1", "<i>(Do both if {R}{W} was spent.)</i>");
        this.addWatcher(new ManaSpentToCastWatcher());
View Full Code Here

        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.
        this.addAbility(new DealsDamageToAPlayerAttachedTriggeredAbility(new LoseLifeTargetEffect(1), "equipped creature", false, true, false));
View Full Code Here

TOP

Related Classes of mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect

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.