Fixed bug where "[All] units" would not apply to city combatants (#4601)

This commit is contained in:
Xander Lenstra
2021-07-22 18:42:38 +02:00
committed by GitHub
parent 61204db01c
commit 57f647c2d1

View File

@ -20,7 +20,7 @@ class CityCombatant(val city: CityInfo) : ICombatant {
override fun isDefeated(): Boolean = city.health == 1
override fun isInvisible(): Boolean = false
override fun canAttack(): Boolean = city.canBombard()
override fun matchesCategory(category: String) = category == "City"
override fun matchesCategory(category: String) = category == "City" || category == "All"
override fun getAttackSound() = UncivSound.Bombard
override fun takeDamage(damage: Int) {