Fixed bug that caused barbarians to not do anything

This commit is contained in:
Yair Morgenstern
2018-07-20 16:04:38 +03:00
parent b1f14761ad
commit a3eda1fd52

View File

@ -38,7 +38,7 @@ class GameInfo {
// We need to update the stats after ALL the cities are done updating because
// maybe one of them has a wonder that affects the stats of all the rest of the cities
for (civInfo in civilizations.filterNot { it==player || it.isDefeated() }){
for (civInfo in civilizations.filterNot { it==player || (it.isDefeated() && !it.isBarbarianCivilization()) }){
civInfo.startTurn()
Automation().automateCivMoves(civInfo)
}