From 859e945799645562b3c7cea1eaa768892b486e81 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 21 Jul 2014 17:17:12 +0200 Subject: [PATCH] * Winds of Change - Fixed a Concurrent Modification Exception bug. --- Mage.Sets/src/mage/sets/fifthedition/WindsOfChange.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/sets/fifthedition/WindsOfChange.java b/Mage.Sets/src/mage/sets/fifthedition/WindsOfChange.java index e18e477f13..e735d36e56 100644 --- a/Mage.Sets/src/mage/sets/fifthedition/WindsOfChange.java +++ b/Mage.Sets/src/mage/sets/fifthedition/WindsOfChange.java @@ -90,12 +90,9 @@ class WindsOfChangeEffect extends OneShotEffect { if (player != null) { int cardsHand = player.getHand().size(); if (cardsHand > 0){ - for (UUID cardId: player.getHand()) { - Card card = game.getCard(cardId); - if (card != null) { - player.removeFromHand(card, game); - card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true); - } + for (Card card: player.getHand().getCards(game)) { + player.removeFromHand(card, game); + card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true); } game.informPlayers(player.getName() + " shuffles the cards from his or her hand into his or her library"); player.shuffleLibrary(game);