mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-25 07:09:16 +07:00
Resolved #4200 - Cities in resistance cannot bombard
This commit is contained in:
@ -19,7 +19,7 @@ class CityCombatant(val city: CityInfo) : ICombatant {
|
|||||||
override fun getName(): String = city.name
|
override fun getName(): String = city.name
|
||||||
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.attackedThisTurn)
|
override fun canAttack(): Boolean = city.canBombard()
|
||||||
override fun matchesCategory(category: String) = category == "City"
|
override fun matchesCategory(category: String) = category == "City"
|
||||||
override fun getAttackSound() = UncivSound.Bombard
|
override fun getAttackSound() = UncivSound.Bombard
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user