mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 17:32:57 +07:00
Resolved #856 - Cities created in your own territory get their own land and are no longer "ghost cities"
This commit is contained in:
parent
6dc2e0dc8a
commit
5ed9a5912b
@ -239,7 +239,7 @@ class Battle(val gameInfo:GameInfo) {
|
||||
defender.takeDamage(100)
|
||||
return
|
||||
} // barbarians don't capture civilians!
|
||||
|
||||
|
||||
if (defender.getCivInfo().isDefeated()) {//Last settler captured
|
||||
defender.getCivInfo().destroy()
|
||||
attacker.getCivInfo().popupAlerts.add(PopupAlert(AlertType.Defeated,defender.getCivInfo().civName))
|
||||
|
@ -77,7 +77,7 @@ class CityExpansionManager {
|
||||
relinquishOwnership(tile)
|
||||
|
||||
cityInfo.getCenterTile().getTilesInDistance(1)
|
||||
.filter { it.getCity()==null } // can't take ownership of owned tiles
|
||||
.filter { it.getCity()==null || it.getCity()!!.civInfo==cityInfo.civInfo } // can't take ownership of owned tiles
|
||||
.forEach { takeOwnership(it) }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user