mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
PlayerStartConditions is ok
GameNew won't fetch supplier twice
This commit is contained in:
@@ -113,8 +113,9 @@ public class GameNew {
|
||||
player.setStartingLife(p.getValue().getStartingLife());
|
||||
// what if I call it for AI player?
|
||||
PlayerZone bf = player.getZone(ZoneType.Battlefield);
|
||||
if (p.getValue().getCardsOnTable() != null) {
|
||||
for (final Card c : p.getValue().getCardsOnTable()) {
|
||||
Iterable<Card> onTable = p.getValue().getCardsOnTable();
|
||||
if (onTable != null) {
|
||||
for (final Card c : onTable) {
|
||||
c.addController(player);
|
||||
c.setOwner(player);
|
||||
bf.add(c, false);
|
||||
|
||||
@@ -22,7 +22,7 @@ public class PlayerStartConditions {
|
||||
return startingLife;
|
||||
}
|
||||
public final Iterable<Card> getCardsOnTable() {
|
||||
return cardsOnTable.get();
|
||||
return cardsOnTable == null ? null : cardsOnTable.get();
|
||||
}
|
||||
|
||||
public final void setStartingLife(int startingLife) {
|
||||
|
||||
Reference in New Issue
Block a user