mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-05 07:49:17 +07:00
All "attacked city state" functions should only activate when attacking directly, not when declaring war due to alliances
This commit is contained in:
@ -690,9 +690,8 @@ class DiplomacyManager() {
|
|||||||
|
|
||||||
otherCivDiplomacy.setModifier(DiplomaticModifiers.DeclaredWarOnUs, -20f)
|
otherCivDiplomacy.setModifier(DiplomaticModifiers.DeclaredWarOnUs, -20f)
|
||||||
otherCivDiplomacy.removeModifier(DiplomaticModifiers.ReturnedCapturedUnits)
|
otherCivDiplomacy.removeModifier(DiplomaticModifiers.ReturnedCapturedUnits)
|
||||||
if (otherCiv.isCityState()) {
|
if (otherCiv.isCityState() && !indirectCityStateAttack) {
|
||||||
if (!indirectCityStateAttack)
|
otherCivDiplomacy.setInfluence(-60f)
|
||||||
otherCivDiplomacy.setInfluence(-60f)
|
|
||||||
civInfo.changeMinorCivsAttacked(1)
|
civInfo.changeMinorCivsAttacked(1)
|
||||||
otherCiv.cityStateFunctions.cityStateAttacked(civInfo)
|
otherCiv.cityStateFunctions.cityStateAttacked(civInfo)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user