stopped overriding resources
This commit is contained in:
parent
36d797d40c
commit
4988487c91
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user