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