mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
fix bug when city states bullied (#5634)
This commit is contained in:
@ -525,7 +525,7 @@ class QuestManager {
|
||||
if (civInfo == cityState) {
|
||||
// Revoke most quest types from the bully
|
||||
val revokedQuests = assignedQuests.asSequence()
|
||||
.filter { it.isIndividual() || it.questName == QuestName.Invest.value }
|
||||
.filter { it.assignee == bully.civName && (it.isIndividual() || it.questName == QuestName.Invest.value) }
|
||||
assignedQuests.removeAll(revokedQuests)
|
||||
if (revokedQuests.count() > 0)
|
||||
bully.addNotification("[${civInfo.civName}] cancelled the quests they had given you because you demanded tribute from them.",
|
||||
|
Reference in New Issue
Block a user