Examples of flipCoin()


Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            if (controller.flipCoin(game)) {
                game.informPlayers("Odds: Spell countered");
                return game.getStack().counter(getTargetPointer().getFirst(game, source), source.getSourceId(), game);

            } else {
                game.informPlayers("Odds: Spell will be copied");
View Full Code Here

Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            if (controller.flipCoin(game)) {
                game.informPlayers(controller.getName() + " got " + controller.gainLife(6, game)+ " live");
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            if (!player.flipCoin(game)) {
                player.damage(3, source.getSourceId(), game, false, true);
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null) {
            if (controller.flipCoin(game)) {
                Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
                if (permanent != null) {
                    permanent.damage(2, source.getSourceId(), game, false, true);
                    return true;
                }
View Full Code Here

Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            if (!player.flipCoin(game)) {
                Permanent permanent = game.getPermanent(source.getSourceId());
                if (permanent != null) {
                    return permanent.sacrifice(source.getSourceId(), game);
                }
            }
View Full Code Here

Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            if (!player.flipCoin(game)) {

                List<Permanent> permanents = game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game);
                for (Permanent permanent: permanents) {
                    permanent.damage(4, source.getSourceId(), game, false, true);
                }
View Full Code Here

Examples of mage.players.Player.flipCoin()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            if (player.flipCoin(game)) {
                game.getState().getTurnMods().add(new TurnMod(player.getId(), false));
                return true;
            }
        }
        return false;
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.