Updated buildCity method.
This commit is contained in:
parent
b758e08fdb
commit
99da9715c5
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue