- Another getCards read-only list errors.

This commit is contained in:
Sloth
2012-10-28 22:11:06 +00:00
parent 951843f418
commit ca6b26b786
2 changed files with 1 additions and 2 deletions

View File

@@ -36,7 +36,6 @@ import com.google.common.collect.Lists;
import forge.Card;
import forge.CardCharacteristicName;
import forge.CardColor;
import forge.CardLists;
import forge.CardPredicates;
import forge.CardPredicates.Presets;

View File

@@ -1511,7 +1511,7 @@ public class ComputerUtil {
* @return a List<Card> of discarded cards.
*/
public static List<Card> discardNumTypeAI(final Player ai, final int numDiscard, final String[] uTypes, final SpellAbility sa) {
List<Card> hand = ai.getCardsIn(ZoneType.Hand);
List<Card> hand = new ArrayList<Card>(ai.getCardsIn(ZoneType.Hand));
Card sourceCard = null;
if ((uTypes != null) && (sa != null)) {