[AVR] Miracle keyword

This commit is contained in:
magenoxx 2012-05-01 23:55:30 +04:00
parent be10728058
commit 0f950dbc50
4 changed files with 199 additions and 11 deletions

View file

@ -108,7 +108,10 @@ public class SystemUtil {
private static void swapWithAnyCard(Game game, Player player, Card card, Constants.Zone zone) {
if (zone.equals(Constants.Zone.BATTLEFIELD)) {
card.putOntoBattlefield(game, Constants.Zone.OUTSIDE, null, player.getId());
} else {
} else if (zone.equals(Constants.Zone.LIBRARY)) {
game.setZone(card.getId(), Constants.Zone.LIBRARY);
player.getLibrary().putOnTop(card, game);
} else {
card.moveToZone(zone, null, game, false);
}
logger.info("Added card to player's " + zone.toString() + ": " + card.getName() +", player = " + player.getName());