mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 18:06:04 +07:00
Resolved #1323 - invalid trades should now be removed when turn starts
This commit is contained in:
parent
1abc649d59
commit
a94a3f9d2e
@ -359,7 +359,7 @@ class CivilizationInfo {
|
||||
|
||||
for(tradeRequest in tradeRequests.toList()) { // remove trade requests where one of the sides can no longer supply
|
||||
val offeringCiv = gameInfo.getCivilization(tradeRequest.requestingCiv)
|
||||
if (offeringCiv.isDefeated() || !TradeEvaluation().isTradeValid(tradeRequest.trade,this, offeringCiv)) {
|
||||
if (offeringCiv.isDefeated() || !TradeEvaluation().isTradeValid(tradeRequest.trade,offeringCiv,this)) {
|
||||
tradeRequests.remove(tradeRequest)
|
||||
offeringCiv.addNotification("Our proposed trade is no longer relevant!", Color.GOLD)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user