Fixed : can repeatly declare war.

This commit is contained in:
Duan Tao 2018-12-22 12:29:17 +08:00
parent e24c50f1b6
commit 3491a1841a

View File

@ -36,7 +36,7 @@ class DiplomacyManager() {
fun turnsToPeaceTreaty(): Int {
for(trade in trades)
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
}