Package mage.abilities.condition.common

Examples of mage.abilities.condition.common.ManaWasSpentCondition


        // You gain X life if {G} was spent to cast Dawnglow Infusion and X life if {W} was spent to cast it.
        DynamicValue xValue = new ManacostVariableValue();
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new GainLifeEffect(xValue),
                new ManaWasSpentCondition(ColoredManaSymbol.G), "You gain X life if {G} was spent to cast {this}"));
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new GainLifeEffect(xValue),
                new ManaWasSpentCondition(ColoredManaSymbol.W), " And X life if {W} was spent to cast it"));
        this.addInfo("Info1", "<i>(Do both if {G}{W} was spent.)</i>");
        this.addWatcher(new ManaSpentToCastWatcher());


    }
View Full Code Here


        this.color.setGreen(true);

        // Firespout deals 3 damage to each creature without flying if {R} was spent to cast Firespout and 3 damage to each creature with flying if {G} was spent to cast it.
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new DamageAllEffect(3, filter1),
                new ManaWasSpentCondition(ColoredManaSymbol.R), "{this} deals 3 damage to each creature without flying if {R} was spent to cast {this}"));
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new DamageAllEffect(3, filter2),
                new ManaWasSpentCondition(ColoredManaSymbol.G), " And 3 damage to each creature with flying if {G} was spent to cast it"));
        this.addInfo("Info1", "<i>(Do both if {R}{G} was spent.)</i>");
        this.addWatcher(new ManaSpentToCastWatcher());


View Full Code Here

        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.color.setBlack(true);
        this.color.setWhite(true);

        // Prevent all combat damage that would be dealt this turn if {W} was spent to cast Batwing Brume. Each player loses 1 life for each attacking creature he or she controls if {B} was spent to cast Batwing Brume.
        Effect effect = new ConditionalReplacementEffect(new PreventAllDamageByAllEffect(Duration.EndOfTurn, true),
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.W)));
        effect.setText("Prevent all combat damage that would be dealt this turn if {W} was spent to cast {this}");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
                new BatwingBrumeEffect(),
                new ManaWasSpentCondition(ColoredManaSymbol.B), "Each player loses 1 life for each attacking creature he or she controls if {B} was spent to cast {this}"));
        this.addInfo("Info1", "<i>(Do both if {W}{B} was spent.)<i>");
        this.addWatcher(new ManaSpentToCastWatcher());

    }
View Full Code Here

       
        // When Patagia Viper enters the battlefield, put two 1/1 green and blue Snake creature tokens onto the battlefield.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new PatagiaViperSnakeToken(), 2), false));
       
        // When Patagia Viper enters the battlefield, sacrifice it unless {U} was spent to cast it.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessConditionEffect(new ManaWasSpentCondition(ColoredManaSymbol.U)), false));
        this.addWatcher(new ManaSpentToCastWatcher());
    }
View Full Code Here

        // Azorius Herald can't be blocked.
        this.addAbility(new UnblockableAbility());
        // When Azorius Herald enters the battlefield, you gain 4 life.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new GainLifeEffect(4)));
        // When Azorius Herald enters the battlefield, sacrifice it unless {U} was spent to cast it.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessConditionEffect(new ManaWasSpentCondition(ColoredManaSymbol.U)), false));
        this.addWatcher(new ManaSpentToCastWatcher());       
    }
View Full Code Here

        this.color.setBlack(true);

        // If {B} was spent to cast Cankerous Thirst, you may have target creature get -3/-3 until end of turn. If {G} was spent to cast Cankerous Thirst, you may have target creature get +3/+3 until end of turn.
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new BoostTargetEffect(-3, -3, Duration.EndOfTurn),
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.B)),
                "If {B} was spent to cast {this}, you may have target creature get -3/-3 until end of turn"));
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new BoostTargetEffect(3, 3, Duration.EndOfTurn),
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.G)),
                "If {G} was spent to cast {this}, you may have target creature get +3/+3 until end of turn"));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.addInfo("Info1", "<i>(Do both if {B}{G} was spent.)<i>");
        this.addWatcher(new ManaSpentToCastWatcher());
    }
View Full Code Here

       
        // When Crypt Champion enters the battlefield, each player puts a creature card with converted mana cost 3 or less from his or her graveyard onto the battlefield.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new CryptChampionEffect()));
       
        // When Crypt Champion enters the battlefield, sacrifice it unless {R} was spent to cast it.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessConditionEffect(new ManaWasSpentCondition(ColoredManaSymbol.R)), false));
        this.addWatcher(new ManaSpentToCastWatcher());
    }
View Full Code Here

        // When Court Hussar enters the battlefield, look at the top three cards of your library, then put one of them into your hand and the rest on the bottom of your library in any order.
        this.addAbility(new EntersBattlefieldTriggeredAbility(
                new LookLibraryAndPickControllerEffect(new StaticValue(3), false, new StaticValue(1), new FilterCard(), Zone.LIBRARY, false, false),
                false));
        // When Court Hussar enters the battlefield, sacrifice it unless {W} was spent to cast it.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessConditionEffect(new ManaWasSpentCondition(ColoredManaSymbol.W)), false));
        this.addWatcher(new ManaSpentToCastWatcher());
    }
View Full Code Here

        this.color.setBlue(true);

        // Creatures your opponents control get -1/-0 until end of turn if {U} was spent to cast Unnerving Assault, and creatures you control get +1/+0 until end of turn if {R} was spent to cast it.
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new BoostAllEffect(-1, 0, Duration.EndOfTurn, filter, false),
                new ManaWasSpentCondition(ColoredManaSymbol.U), "Creatures your opponents control get -1/0 until end of turn if {U} was spent to cast {this},"));
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new BoostAllEffect(1, 0, Duration.EndOfTurn, filter2, false),
                new ManaWasSpentCondition(ColoredManaSymbol.R), " and creatures you control get +1/0 until end of turn if {R} was spent to cast it"));
        this.addInfo("Info1", "<i>(Do both if {U}{R} was spent.)</i>");
        this.addWatcher(new ManaSpentToCastWatcher());
       
    }
View Full Code Here

TOP

Related Classes of mage.abilities.condition.common.ManaWasSpentCondition

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.