File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
agot-bg-game-server/src/common/ingame-game-state/game-data-structure Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ function distributeUnassignedRegions(ingame: IngameGameState): void {
632
632
const freeAdjacents = _ . uniq ( _ . difference ( _ . flatMap ( regionsToProcess . map ( r => getAdjacentRegions ( ingame , r ) ) ) )
633
633
. filter ( r => {
634
634
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 ;
636
636
} , regionsToProcess ) ) ;
637
637
freeAdjacents . forEach ( r => {
638
638
const possibleHouses = newAssignments . tryGet ( r , [ ] as House [ ] ) ;
You can’t perform that action at this time.
0 commit comments