Package mage.abilities.effects.common.combat

Examples of mage.abilities.effects.common.combat.CantBlockAllEffect


    public boolean apply(Game game, Ability source) {
        Player targetPlayer = game.getPlayer(source.getFirstTarget());
        if (targetPlayer != null) {
            FilterCreaturePermanent filter = new FilterCreaturePermanent();
            filter.add(new ControllerIdPredicate(targetPlayer.getId()));
            RestrictionEffect effect = new CantBlockAllEffect(filter, Duration.EndOfTurn);
            game.addEffect(effect, source);
            FilterPermanent filter2 = new FilterPermanent();
            filter2.add(new ControllerIdPredicate(targetPlayer.getId()));
            filter2.add(Predicates.or(new ColorPredicate(ObjectColor.WHITE),
                    new ColorPredicate(ObjectColor.BLUE)));
View Full Code Here


        mode.getTargets().add(new TargetSpell());
        this.getSpellAbility().addMode(mode);
       
        // <strong>�</strong> Creatures with power 3 or less can't block this turn.
        mode = new Mode();
        mode.getEffects().add(new CantBlockAllEffect(filterCantBlock, Duration.EndOfTurn));
        this.getSpellAbility().addMode(mode);
       
    }
View Full Code Here

        this.color.setRed(true);
        this.color.setGreen(true);

        // Choose one - Creatures without flying can't block this turn;
        this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.EndOfTurn));
       
        // or gain control of all permanents you own;
        Mode mode = new Mode();
        mode.getEffects().add(new GainControlAllEffect(Duration.EndOfGame, filter2));
        this.getSpellAbility().addMode(mode);
View Full Code Here

        this.expansionSetCode = "USG";

        this.color.setRed(true);

        // Creatures without flying can't block this turn.
        this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.EndOfTurn));
    }
View Full Code Here

        this.getSpellAbility().addEffect(new CantBeBlockedByOneAllEffect(2, new FilterCreaturePermanent(), Duration.EndOfTurn));

        // Threshold — If seven or more cards are in your graveyard, creatures can't block this turn.
        this.getSpellAbility().addEffect(
                new ConditionalOneShotEffect(
                    new AddContinuousEffectToGame(new CantBlockAllEffect(new FilterCreaturePermanent(), Duration.EndOfTurn)),
                    new CardsInControllerGraveCondition(7),
                    "<br/><br/><i>Threshold</i> - If seven or more cards are in your graveyard, creatures can't block this turn"
                ));
    }
View Full Code Here

        effect.setTargetPointer(new FixedTarget(target.getId()));
        game.addEffect(effect, source);
       
        target.untap(game);
       
        ContinuousEffect effect2 = new CantBlockAllEffect(filter, Duration.EndOfTurn);
        game.addEffect(effect2, source);
        return true;
    }
View Full Code Here

        this.toughness = new MageInt(4);

        // {6}{R}{R}: Monstrosity 3.
        this.addAbility(new MonstrosityAbility("{6}{R}{R}",3));
        // When Stoneshock Giant becomes monstrous, creatures without flying your opponents control can't block this turn.
        this.addAbility(new BecomesMonstrousSourceTriggeredAbility(new CantBlockAllEffect(filter, Duration.EndOfTurn)));
    }
View Full Code Here

        super(ownerId, 31, "Awe for the Guilds", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{2}{R}");
        this.expansionSetCode = "DGM";
        this.color.setRed(true);

        // Monocolored creatures can't block this turn.
        this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.EndOfTurn));

    }
View Full Code Here

        getLeftHalfCard().getSpellAbility().addTarget(target);

        // Chaos
        // Creatures can't block this turn.
        getRightHalfCard().getColor().setRed(true);
        getRightHalfCard().getSpellAbility().addEffect(new CantBlockAllEffect(new FilterCreaturePermanent("Creatures"), Duration.EndOfTurn));

    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.combat.CantBlockAllEffect

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.