Package mage.abilities.decorator

Examples of mage.abilities.decorator.ConditionalActivatedAbility.addEffect()


                Zone.BATTLEFIELD,
                new BoostSourceEffect(3, 3, Duration.EndOfTurn),
                new ManaCostsImpl<>("{0}"),
                new ChronatogTotemCondition(),
                "{0}: {this} gets +3/+3 until end of turn. You skip your next turn. Activate this ability only once each turn and only if {this} is a creature");
        ability.addEffect(new SkipNextTurnSourceEffect());
        this.addAbility(ability);
        this.addWatcher(new ActivatedAbilityUsedThisTurnWatcher());
    }

    public ChronatogTotem(final ChronatogTotem card) {
View Full Code Here


        // {GU}: Groundling Pouncer gets +1/+3 and gains flying until end of turn. Activate this ability only once each turn and only if an opponent controls a creature with flying.
        Condition condition = new GroundingPouncerCondition();
        Effect effect = new BoostSourceEffect(1, 3, Duration.EndOfTurn);
        Effect effect2 = new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, false, true);
        Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{G/U}"), condition, rule);
        ability.addEffect(effect2);
        this.addAbility(ability);
        this.addWatcher(new ActivatedAbilityUsedThisTurnWatcher());

    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.