From 7e75b0cc03e3ab2e294361cbcaa6b505f13f4574 Mon Sep 17 00:00:00 2001 From: ingmargoudt Date: Mon, 20 Mar 2017 10:39:28 +0100 Subject: [PATCH] change map for list --- Mage.Sets/src/mage/cards/k/KynaiosAndTiroOfMeletis.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/k/KynaiosAndTiroOfMeletis.java b/Mage.Sets/src/mage/cards/k/KynaiosAndTiroOfMeletis.java index 3b0beda3b7..d56c6acce5 100644 --- a/Mage.Sets/src/mage/cards/k/KynaiosAndTiroOfMeletis.java +++ b/Mage.Sets/src/mage/cards/k/KynaiosAndTiroOfMeletis.java @@ -47,12 +47,12 @@ import mage.players.PlayerList; import mage.target.Target; import mage.target.common.TargetCardInHand; +import java.util.ArrayList; import java.util.HashMap; import java.util.Objects; import java.util.UUID; /** - * * @author spjspj */ public class KynaiosAndTiroOfMeletis extends CardImpl { @@ -100,7 +100,6 @@ class KynaiosAndTirosEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); - Permanent permanent = game.getPermanent(source.getSourceId()); if (controller != null) { controller.drawCards(1, game); PlayerList playerList = game.getState().getPlayerList().copy(); @@ -111,7 +110,7 @@ class KynaiosAndTirosEffect extends OneShotEffect { Player currentPlayer = game.getPlayer(playerList.get()); UUID firstInactivePlayer = null; Target target = new TargetCardInHand(filter); - HashMap noLandPlayers = new HashMap<>(); + ArrayList noLandPlayers = new ArrayList<>(); while (controller.canRespond()) { if (currentPlayer != null && currentPlayer.canRespond() && game.getState().getPlayersInRange(controller.getId(), game).contains(currentPlayer.getId())) { @@ -130,7 +129,7 @@ class KynaiosAndTirosEffect extends OneShotEffect { } } if (!playedLand && !Objects.equals(currentPlayer, controller)) { - noLandPlayers.put(currentPlayer.getId(), playedLand); + noLandPlayers.add(currentPlayer.getId()); } } // get next player @@ -142,7 +141,7 @@ class KynaiosAndTirosEffect extends OneShotEffect { } } - for (UUID playerId : noLandPlayers.keySet()) { + for (UUID playerId : noLandPlayers) { Player player = game.getPlayer(playerId); if (player != null) { if (player.chooseUse(outcome.DrawCard, "Draw a card?", source, game)) {