Merge pull request #547 from argonui/cleanup

Bugfix for Clean Up Helper
This commit is contained in:
Entrox-Licher 2024-01-15 15:55:36 -05:00 committed by GitHub
commit efb1c859a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,6 @@ function cleanUp(_, color)
blessCurseManagerApi.removeAll(color) blessCurseManagerApi.removeAll(color)
removeLines() removeLines()
discardHands() discardHands()
tokenSpawnTrackerApi.resetAll()
chaosBagApi.returnChaosTokens() chaosBagApi.returnChaosTokens()
chaosBagApi.releaseAllSealedTokens(color) chaosBagApi.releaseAllSealedTokens(color)
@ -317,6 +316,8 @@ function tidyPlayerMatCoroutine()
end end
end end
-- reset spawned data
tokenSpawnTrackerApi.resetAll()
local datahelper = guidReferenceApi.getObjectByOwnerAndType("Mythos", "DataHelper") local datahelper = guidReferenceApi.getObjectByOwnerAndType("Mythos", "DataHelper")
if datahelper then if datahelper then
datahelper.setTable("SPAWNED_PLAYER_CARD_GUIDS", {}) datahelper.setTable("SPAWNED_PLAYER_CARD_GUIDS", {})