All "attacked city state" functions should only activate when attacking directly, not when declaring war due to alliances

This commit is contained in:
Yair Morgenstern
2022-06-09 19:26:12 +03:00
parent 6c463797d8
commit 467b0b2570

View File

@ -690,9 +690,8 @@ class DiplomacyManager() {
otherCivDiplomacy.setModifier(DiplomaticModifiers.DeclaredWarOnUs, -20f)
otherCivDiplomacy.removeModifier(DiplomaticModifiers.ReturnedCapturedUnits)
if (otherCiv.isCityState()) {
if (!indirectCityStateAttack)
otherCivDiplomacy.setInfluence(-60f)
if (otherCiv.isCityState() && !indirectCityStateAttack) {
otherCivDiplomacy.setInfluence(-60f)
civInfo.changeMinorCivsAttacked(1)
otherCiv.cityStateFunctions.cityStateAttacked(civInfo)
}