Examples of UntapAllControllerEffect


Examples of mage.abilities.effects.common.UntapAllControllerEffect

        if (player != null) {
            ManaCosts cost = new ManaCostsImpl("{5}{R}{R}");
            if (player.chooseUse(Outcome.Damage, "Pay " + cost.getText() + "?", game)) {
                cost.clearPaid();
                if (cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)) {
                    new UntapAllControllerEffect(new FilterAttackingCreature(),"").apply(game, source);
                    game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), TurnPhase.COMBAT, null, false));
                    return true;
                }
            }
        }
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.color.setWhite(true);

        // Whenever you cast a noncreature spell, creatures you control get +1/+1 until end of turn. Untap those creatures.
        Effect effect = new BoostControlledEffect(1,1,Duration.EndOfTurn);
        Ability ability = new SpellCastControllerTriggeredAbility(effect, filterNonCreature, false);
        effect = new UntapAllControllerEffect(new FilterCreaturePermanent(),"Untap those creatures");
        ability.addEffect(effect);
        this.addAbility(ability);

        // Whenever you cast a noncreature spell, you may draw a card. If you do, discard a card.
        effect = new DrawDiscardControllerEffect(1,1);
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.toughness = new MageInt(4);

        this.addAbility(FlashAbility.getInstance());

        // When Village Bell-Ringer enters the battlefield, untap all creatures you control.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new UntapAllControllerEffect(new FilterControlledCreaturePermanent(), rule), false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.expansionSetCode = "WTH";

        this.color.setGreen(true);

        // Untap all creatures you control.
        this.getSpellAbility().addEffect(new UntapAllControllerEffect(new FilterCreaturePermanent(), "Untap all creatures you control"));
    }
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        // Choose one - Creatures you control gain double strike until end of turn;
        this.getSpellAbility().addEffect(new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn, new FilterCreaturePermanent(), false));
       
        // or untap all creatures you control and after this phase, there is an additional combat phase.
        Mode mode = new Mode();
        mode.getEffects().add(new UntapAllControllerEffect(new FilterControlledCreaturePermanent(), "untap all creatures you control"));
        mode.getEffects().add(new AdditionalCombatPhaseEffect());
        this.getSpellAbility().getModes().addMode(mode);
       
        // Entwine {1}{R}
        this.addAbility(new EntwineAbility("{1}{R}"));
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.color.setBlue(true);
        this.color.setWhite(true);

        // Untap all creatures you control.  They gain flying and double strike until end of turn.
        FilterCreaturePermanent filter = new FilterCreaturePermanent("creatures");
        this.getSpellAbility().addEffect(new UntapAllControllerEffect(filter));
        Effect effect = new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, filter);
        effect.setText("They gain flying");
        this.getSpellAbility().addEffect(effect);
        effect = new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn, filter);
        effect.setText("and double strike until end of turn");
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.expansionSetCode = "ONS";

        this.color.setRed(true);

        // {3}{R}{R}: Untap all creatures you control. After this main phase, there is an additional combat phase followed by an additional main phase. Activate this ability only any time you could cast a sorcery.
        Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new UntapAllControllerEffect(new FilterControlledCreaturePermanent(), "Untap all creatures you control"), new ManaCostsImpl<>("{3}{R}{R}"));
        ability.addEffect(new AdditionalCombatPhaseEffect());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Dethrone (Whenever this creature attacks the player with the most life or tied for most life, put a +1/+1 counter on it.)
        this.addAbility(new DethroneAbility());
        // Whenever Scourge of the Throne attacks for the first time each turn, if it's attacking the player with the most life or tied for most life, untap all attacking creatures. After this phase, there is an additional combat phase.
        Ability ability = new ScourgeOfTheThroneAttacksTriggeredAbility(new UntapAllControllerEffect(new FilterControlledCreaturePermanent(),"untap all creatures you control"), false);
        ability.addEffect(new AdditionalCombatPhaseEffect());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.color.setWhite(true);

        // Creatures you control get +1/+2 until end of turn. Untap those creatures.
        this.getSpellAbility().addEffect(new BoostControlledEffect(1, 2, Duration.EndOfTurn));
        this.getSpellAbility().addEffect(new UntapAllControllerEffect(new FilterCreaturePermanent(),"Untap those creatures"));
        // Basic landcycling {1}{W}({1}{W}, Discard this card: Search your library for a basic land card, reveal it, and put it into your hand. Then shuffle your library.)
        this.addAbility(new BasicLandcyclingAbility(new ManaCostsImpl("{1}{W}")));
    }
View Full Code Here

Examples of mage.abilities.effects.common.UntapAllControllerEffect

        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(VigilanceAbility.getInstance());
        this.addAbility(HasteAbility.getInstance());

        // Whenever Aurelia, the Warleader attacks for the first time each turn, untap all creatures you control. After this phase, there is an additional combat phase.
        Ability ability = new AureliaAttacksTriggeredAbility(new UntapAllControllerEffect(new FilterControlledCreaturePermanent(),"untap all creatures you control"), false);
        ability.addEffect(new AdditionalCombatPhaseEffect());
        this.addAbility(ability);

    }
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.