Package mage.abilities.effects.common.combat

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


        this.expansionSetCode = "LEG";

        this.color.setWhite(true);

        // Creatures without flying can't attack.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackAllAnyPlayerEffect(Duration.WhileOnBattlefield, filter)));
    }
View Full Code Here


    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && KickedCondition.getInstance().apply(game, source)) {
            game.addEffect(new CantAttackAllAnyPlayerEffect(Duration.EndOfTurn, new FilterCreaturePermanent("creatures")), source);
        }
        return false;
    }
View Full Code Here

        // Islandwalk (This creature is unblockable as long as defending player controls an Island.)
        this.addAbility(new IslandwalkAbility());
        // All lands are Islands in addition to their other types.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new StormtideLeviathanEffect()));
        // Creatures without flying or islandwalk can't attack.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantAttackAllAnyPlayerEffect(Duration.WhileOnBattlefield, filter)));

    }
View Full Code Here

TOP

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

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.