mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 22:00:24 +07:00
Embarked civilian units should have no defense.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user