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