mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Fixed bug where "[All] units" would not apply to city combatants (#4601)
This commit is contained in:
parent
61204db01c
commit
57f647c2d1
@ -20,7 +20,7 @@ class CityCombatant(val city: CityInfo) : ICombatant {
|
|||||||
override fun isDefeated(): Boolean = city.health == 1
|
override fun isDefeated(): Boolean = city.health == 1
|
||||||
override fun isInvisible(): Boolean = false
|
override fun isInvisible(): Boolean = false
|
||||||
override fun canAttack(): Boolean = city.canBombard()
|
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 getAttackSound() = UncivSound.Bombard
|
||||||
|
|
||||||
override fun takeDamage(damage: Int) {
|
override fun takeDamage(damage: Int) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user