Updated buildCity method.

This commit is contained in:
Speedy Gonzalez 2021-12-07 14:33:56 +01:00
parent b758e08fdb
commit 99da9715c5
1 changed files with 2 additions and 2 deletions

View File

@ -315,8 +315,8 @@ public class SiedlerGame {
return false;
}
//2. Check if Settlement has already been built
Settlement atCurrentPosition = board.getCorner(position); //todo prüfen ob Siedlung von richtiger Faction und nicht Stadt
if (atCurrentPosition == null || atCurrentPosition.getFaction() != allPlayers.get(activePlayer).getFaction()){
Settlement atCurrentPosition = board.getCorner(position);
if (atCurrentPosition == null || atCurrentPosition instanceof City || atCurrentPosition.getFaction() != allPlayers.get(activePlayer).getFaction()){
return false;
}
//3. Can player build a City.