Package mage.abilities.condition

Examples of mage.abilities.condition.LockedInCondition


        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


        // Target creature gets -1/-1 until end of turn.
        // Morbid - That creature gets -13/-13 until end of turn instead if a creature died this turn.
        this.getSpellAbility().addEffect(new ConditionalContinousEffect(
                new BoostTargetEffect(-13, -13, Duration.EndOfTurn),
                new BoostTargetEffect(-1, -1, Duration.EndOfTurn),
                new LockedInCondition(MorbidCondition.getInstance()),
                "Target creature gets -1/-1 until end of turn. Morbid - That creature gets -13/-13 until end of turn instead if a creature died this turn"));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
    }
View Full Code Here

        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));

        this.getSpellAbility().addEffect(new ConditionalContinousEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn),
                new LockedInCondition(MetalcraftCondition.getInstance()), effectText));
    }
View Full Code Here

        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

        // {RW}{RW}{RW}: If Figure of Destiny is a Spirit, it becomes a Kithkin Spirit Warrior with base power and toughness 4/4.
        this.addAbility(new SimpleActivatedAbility(
                Zone.BATTLEFIELD,
                new ConditionalContinousEffect(
                    new BecomesCreatureSourceEffect(new FigureOfDestiny.FigureOfDestinyToken2(), "", Duration.Custom),
                    new LockedInCondition(new SourceMatchesFilterCondition(filter2)),
                    "If {this} is a Spirit, it becomes a Kithkin Spirit Warrior with base power and toughness 4/4"),
                new ManaCostsImpl("{R/W}{R/W}{R/W}")               
                ));
        // {RW}{RW}{RW}{RW}{RW}{RW}: If Figure of Destiny is a Warrior, it becomes a Kithkin Spirit Warrior Avatar with base power and toughness 8/8, flying, and first strike.
        this.addAbility(new SimpleActivatedAbility(
                Zone.BATTLEFIELD,
                new ConditionalContinousEffect(
                    new BecomesCreatureSourceEffect(new FigureOfDestiny.FigureOfDestinyToken3(), "", Duration.Custom),
                    new LockedInCondition(new SourceMatchesFilterCondition(filter3)),
                    "If {this} is a Warrior, it becomes a Kithkin Spirit Warrior Avatar with base power and toughness 8/8, flying, and first strike"),
                new ManaCostsImpl("{R/W}{R/W}{R/W}{R/W}{R/W}{R/W}")               
                ));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.condition.LockedInCondition

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.