From f5dd24bf35129d8400c3006729ae89bf6dcf4dd9 Mon Sep 17 00:00:00 2001 From: YueR Date: Sun, 29 Sep 2019 03:15:46 +0800 Subject: [PATCH] update --- core/src/com/unciv/logic/battle/BattleDamage.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/com/unciv/logic/battle/BattleDamage.kt b/core/src/com/unciv/logic/battle/BattleDamage.kt index 6c7e2be84e..93d690d5aa 100644 --- a/core/src/com/unciv/logic/battle/BattleDamage.kt +++ b/core/src/com/unciv/logic/battle/BattleDamage.kt @@ -197,9 +197,7 @@ class BattleDamage{ private fun getHealthDependantDamageRatio(combatant: ICombatant): Float { return if (combatant.getUnitType() == UnitType.City) 0.75f - else if(combatant.getCivInfo().nation.unique == "Units fight as though they were at full strength even when damaged" - && combatant.getUnitType()!=UnitType.Fighter - && combatant.getUnitType()!=UnitType.Bomber) + else if(combatant.getCivInfo().nation.unique == "Units fight as though they were at full strength even when damaged" && !combatant.getUnitType().isAirUnit()) 1f else 1 - (100 - combatant.getHealth()) / 300f// Each 3 points of health reduces damage dealt by 1% like original game }