Package mage.players

Examples of mage.players.Player.lost()


    @Override
    public boolean apply(Game game, Ability source) {
        Player target = game.getPlayer(this.getTargetPointer().getFirst(game, source));
        if (target != null) {
            target.lost(game);
            return true;
        }
        return false;
    }
}
View Full Code Here


                cost.clearPaid();
                if (cost.pay(source, game, source.getSourceId(), source.getControllerId(), false)){
                    return true;
                }
            }
            player.lost(game);
            return true;
        }
        return false;
    }
View Full Code Here

        for (CommanderCombatDamageWatcher damageWatcher: commanderCombatWatcher) {
            for(Map.Entry<UUID, Integer> entrySet : damageWatcher.getDamageToPlayer().entrySet()){
                if (entrySet.getValue() > 20) {
                    Player player = getPlayer(entrySet.getKey());
                    if (player != null && player.isInGame()){
                        player.lost(this);
                    }
                }
            }
        }
        return super.checkStateBasedActions();
View Full Code Here

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

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

    @Override
    public boolean apply(Game game, Ability source) {
        Player target = game.getPlayer(source.getFirstTarget());
        if (target != null) {
            target.lost(game);
            return true;
        }
        return false;
    }
}
View Full Code Here

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

                    }
                }
            }
            if (!cardReturned) {
                game.informPlayers(new StringBuilder(player.getName()).append(" can't return a card from graveyard to hand.").toString());
                player.lost(game);
            }
            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.