Embarked civilian units should have no defense.
This commit is contained in:
parent
625017f270
commit
f8a8d7bbfb
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class MapUnitCombatant(val unit: MapUnit) : ICombatant {
|
|||
}
|
||||
|
||||
override fun getDefendingStrength(): Int {
|
||||
if(unit.isEmbarked()) return 5 * getCivInfo().getEra().ordinal
|
||||
if(unit.isEmbarked() && !unit.type.isCivilian()) return 5 * getCivInfo().getEra().ordinal
|
||||
return unit.baseUnit().strength
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue