Resolved #2838 - cities in resistance can no longer be traded

This commit is contained in:
Yair Morgenstern 2020-07-24 11:55:10 +03:00
parent 7bf705236c
commit 56052884f1
2 changed files with 1 additions and 5 deletions

View file

@ -16,10 +16,6 @@ Buildings that are missing resources are still displayed in city constructions
Unit 'unbuildable' parameter converted to unique
By vainiovano:
Fix Gradle deprecation warnings
By alkorolyov:
- Spectator can view other civ stats: Tech, Trades, Cities, Units, Gold

View file

@ -41,7 +41,7 @@ class TradeLogic(val ourCivilization:CivilizationInfo, val otherCivilization: Ci
if (!civInfo.isOneCityChallenger() && !otherCivilization.isOneCityChallenger()
&& !civInfo.isCityState() && !otherCivilization.isCityState()) {
for (city in civInfo.cities.filterNot { it.isCapital() })
for (city in civInfo.cities.filterNot { it.isCapital() || it.isInResistance() })
offers.add(TradeOffer(city.id, TradeType.City))
}