Merge pull request #462 from argonui/preston

Bugfix for Family Inheritance: don't override resources
This commit is contained in:
Entrox-Licher 2023-11-06 10:18:03 -05:00 committed by GitHub
commit cedd05595d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
local tokenManager = require("core/token/TokenManager")
local playmatApi = require("playermat/PlaymatApi")
local tokenManager = require("core/token/TokenManager")
local clickableResourceCounter = nil
local foundTokens = 0
@ -47,7 +47,7 @@ end
function takeAll(playerColor)
searchSelf()
local matColor = playmatApi.getMatColorByPosition(self.getPosition())
playmatApi.updateCounter(matColor, "ResourceCounter", foundTokens)
playmatApi.updateCounter(matColor, "ResourceCounter", _, foundTokens)
if clickableResourceCounter then
clickableResourceCounter.call("updateVal", 0)