From 2bcd4a86e721363775db91b5e018848f24f38194 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 23 May 2018 00:20:15 +0300 Subject: [PATCH] Defeated cities don't really hit back --- core/src/com/unciv/logic/battle/CityCombatant.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/battle/CityCombatant.kt b/core/src/com/unciv/logic/battle/CityCombatant.kt index 5e3fca0820..de0cfd496d 100644 --- a/core/src/com/unciv/logic/battle/CityCombatant.kt +++ b/core/src/com/unciv/logic/battle/CityCombatant.kt @@ -20,7 +20,10 @@ class CityCombatant(val city: CityInfo) : ICombatant { override fun getUnitType():UnitType=UnitType.City override fun getAttackingStrength(defender: ICombatant): Int = getCityStrength() - override fun getDefendingStrength(attacker: ICombatant): Int = getCityStrength() + override fun getDefendingStrength(attacker: ICombatant): Int{ + if(isDefeated()) return 1 + return getCityStrength() + } private fun getCityStrength(): Int {