mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Merge pull request #584 from ninjatao/water_defense
Embarked civilian units should have no defense.
This commit is contained in:
commit
1004f1aaca
@ -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…
x
Reference in New Issue
Block a user