mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
Fixed : can repeatly declare war.
This commit is contained in:
@ -36,7 +36,7 @@ class DiplomacyManager() {
|
|||||||
fun turnsToPeaceTreaty(): Int {
|
fun turnsToPeaceTreaty(): Int {
|
||||||
for(trade in trades)
|
for(trade in trades)
|
||||||
for(offer in trade.ourOffers)
|
for(offer in trade.ourOffers)
|
||||||
if(offer.name=="Peace Treaty") return offer.duration
|
if(offer.name=="Peace Treaty" && offer.duration > 0) return offer.duration
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user