mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Another getCards read-only list errors.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user