Package mage.abilities.condition.common

Examples of mage.abilities.condition.common.ManaWasSpentCondition


        this.color.setGreen(true);

        // Creatures your opponents control lose flying until end of turn if {G} was spent to cast Invert the Skies, and creatures you control gain flying until end of turn if {U} was spent to cast it.
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new InvertTheSkiesEffect(),
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.G)),
                "Creatures your opponents control lose flying until end of turn if {G} was spent to cast {this},"));
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn),
                new LockedInCondition(new ManaWasSpentCondition(ColoredManaSymbol.U)),
                "and creatures you control gain flying until end of turn if {U} was spent to cast it"));
        this.addInfo("Info1", "<i>(Do both if {G}{U} was spent.)<i>");
        this.addWatcher(new ManaSpentToCastWatcher());
    }
View Full Code Here


        this.color.setRed(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(1);

        // When Tin Street Hooligan enters the battlefield, if {G} was spent to cast Tin Street Hooligan, destroy target artifact.
        Ability ability = new EntersBattlefieldTriggeredAbility(new ConditionalOneShotEffect(new DestroyTargetEffect(), new ManaWasSpentCondition(ColoredManaSymbol.G),
                "if {G} was spent to cast {this}, destroy target artifact"), false);
        ability.addTarget(new TargetArtifactPermanent());       
        this.addAbility(ability);
        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.