mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Fixed crash in rare situation where a citadel takes over land of an unknown civ
This commit is contained in:
parent
f7e3017826
commit
de337a0ca2
@ -398,6 +398,7 @@ object UnitActions {
|
|||||||
val otherCiv = tile.getOwner()
|
val otherCiv = tile.getOwner()
|
||||||
if (otherCiv != null) {
|
if (otherCiv != null) {
|
||||||
// decrease relations for -10 pt/tile
|
// decrease relations for -10 pt/tile
|
||||||
|
if(!otherCiv.knows(unit.civInfo)) otherCiv.meetCivilization(unit.civInfo)
|
||||||
otherCiv.getDiplomacyManager(unit.civInfo).addModifier(DiplomaticModifiers.StealingTerritory, -10f)
|
otherCiv.getDiplomacyManager(unit.civInfo).addModifier(DiplomaticModifiers.StealingTerritory, -10f)
|
||||||
notifications.add(otherCiv)
|
notifications.add(otherCiv)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user