fix bug when city states bullied (#5634)

This commit is contained in:
SimonCeder
2021-11-03 14:49:02 +01:00
committed by GitHub
parent ff389e0238
commit 78afff9f36

View File

@ -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.",