Skip to content

Commit f480465

Browse files
committed
Fix Map draft: Ports can only be used if adjacent castle is under control
1 parent 6d5db5a commit f480465

File tree

1 file changed

+1
-1
lines changed
  • agot-bg-game-server/src/common/ingame-game-state/game-data-structure

1 file changed

+1
-1
lines changed

agot-bg-game-server/src/common/ingame-game-state/game-data-structure/createGame.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ function distributeUnassignedRegions(ingame: IngameGameState): void {
632632
const freeAdjacents = _.uniq(_.difference(_.flatMap(regionsToProcess.map(r => getAdjacentRegions(ingame, r))))
633633
.filter(r => {
634634
const controller = r.getController();
635-
return (controller == null || controller == h) && !allAssignedRegions.includes(r) && r.garrison == 0;
635+
return ((controller == null && r.type.id != "port") || controller == h) && !allAssignedRegions.includes(r) && r.garrison == 0;
636636
}, regionsToProcess));
637637
freeAdjacents.forEach(r => {
638638
const possibleHouses = newAssignments.tryGet(r, [] as House[]);

0 commit comments

Comments
 (0)