Fix Invest quest stays forever (#11475)

This commit is contained in:
SomeTroglodyte 2024-04-15 22:55:34 +02:00 committed by GitHub
parent 8ef90cbaf1
commit eb0367184a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -272,8 +272,7 @@ class QuestManager : IsPartOfGameInfoSerialization {
winnersAndLosers.winners.forEach { giveReward(it) }
winnersAndLosers.losers.forEach { notifyExpired(it, winnersAndLosers.winners) }
assignedQuests.removeAll(winnersAndLosers.winners)
assignedQuests.removeAll(winnersAndLosers.losers)
assignedQuests.removeAll { it.questNameInstance == questName } // removing winners then losers would leave those with score 0
}
private fun handleIndividualQuests() {