~ update zone lki list

This commit is contained in:
Hans Mackowiak
2020-09-10 07:25:48 +02:00
parent 0d2765f787
commit 384d687b2f

View File

@@ -300,14 +300,10 @@ public class Zone implements java.io.Serializable, Iterable<Card> {
return zoneType.toString(); return zoneType.toString();
} }
public Zone getLKICopy() { public Zone getLKICopy(Map<Integer, Card> cachedMap) {
Zone result = new Zone(zoneType, game); Zone result = new Zone(zoneType, game);
final CardCollection list = new CardCollection(); result.setCards(CardUtil.getLKICopyList(getCards(), cachedMap));
for (final Card c : getCards()) {
list.add(CardUtil.getLKICopy(c));
}
result.setCards(list);
return result; return result;
} }