Package mage.abilities.effects.common.continious

Examples of mage.abilities.effects.common.continious.BoostAllEffect


            UUID opponent = target.getControllerId();
            if (opponent != null) {
                FilterCreaturePermanent filter = new FilterCreaturePermanent("each other creature that player controls");
                filter.add(new ControllerIdPredicate(opponent));
                filter.add(Predicates.not(new PermanentIdPredicate(target.getId())));
                ContinuousEffect effect = new BoostAllEffect(-2,0, Duration.EndOfTurn, filter, false);
                game.addEffect(effect, source);
                return true;
            }
        }
        return false;
View Full Code Here


        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);
   
    //When Phyrexian Driver enters the battlefield, other Mercenary creatures get +1/+1 until end of turn.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new BoostAllEffect(1, 1, Duration.EndOfTurn, filter, true)));
    }
View Full Code Here

        // When Kangee, Aerie Keeper enters the battlefield, if it was kicked, put X feather counters on it.
        TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new AddCountersSourceEffect(CounterType.FEATHER.createInstance(), new KangeeAerieKeeperGetKickerXValue(), true));
        this.addAbility(new ConditionalTriggeredAbility(ability, KickedCondition.getInstance(), "When {this} enters the battlefield, if it was kicked, put X feather counters on it."));
       
        // Other Bird creatures get +1/+1 for each feather counter on Kangee, Aerie Keeper.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(new CountersCount(CounterType.FEATHER), new CountersCount(CounterType.FEATHER), Duration.WhileOnBattlefield, filter, true, "Other Bird creatures get +1/+1 for each feather counter on {this}.")));
    }
View Full Code Here

        this.expansionSetCode = "M13";

        this.color.setBlack(true);

        // Creatures your opponents control get -1/-1 until end of turn.
        this.getSpellAbility().addEffect(new BoostAllEffect(-1, -1, Duration.EndOfTurn, filter, false));
    }
View Full Code Here

        super(ownerId, 160, "Trumpet Blast", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{R}");
        this.expansionSetCode = "M10";

        this.color.setRed(true);

        this.getSpellAbility().addEffect(new BoostAllEffect(2, 0, Duration.EndOfTurn, filter, false));
    }
View Full Code Here

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

        // Saproling creatures get +1/+1.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, false)));

        // Morph {3}{G}{G}
        this.addAbility(new MorphAbility(this, new ManaCostsImpl("{3}{G}{G}")));

        // When Thelonite Hermit is turned face up, put four 1/1 green Saproling creature tokens onto the battlefield.
View Full Code Here

        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), true);
        Target target = new TargetCardInYourGraveyard(filterCard);
        ability.addTarget(target);
         this.addAbility(ability);
        // {B}{R}: Dragon creatures get +1/+1 until end of turn.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostAllEffect(1,1, Duration.EndOfTurn, filter, false), new ManaCostsImpl("{B}{R}")));
    }
View Full Code Here

        this.expansionSetCode = "C13";

        // As long as Thunderstaff is untapped, if a creature would deal combat damage to you, prevent 1 of that damage.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ThunderstaffPreventionEffect()));
        // {2}, {tap}: Attacking creatures get +1/+0 until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostAllEffect(1,0,Duration.EndOfTurn, filter, false), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);

    }
View Full Code Here

        // Destroy all creatures. They can't be regenerated. Draw a card for each creature destroyed this way.
        this.getSpellAbility().addEffect(new DecreeOfPainEffect());
        // Cycling {3}{B}{B}
        this.addAbility(new CyclingAbility(new ManaCostsImpl("{3}{B}{B}")));
        // When you cycle Decree of Pain, all creatures get -2/-2 until end of turn.
        Ability ability = new CycleTriggeredAbility(new BoostAllEffect(-2,-2, Duration.EndOfTurn));
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setRed(true);
        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.effects.common.continious.BoostAllEffect

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.