From 4988487c91bf8f5da98516cfb22f9278431e684c Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sun, 5 Nov 2023 16:23:35 +0100 Subject: [PATCH] stopped overriding resources --- src/playercards/cards/FamilyInheritance.ttslua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playercards/cards/FamilyInheritance.ttslua b/src/playercards/cards/FamilyInheritance.ttslua index b33b177c..b08559e9 100644 --- a/src/playercards/cards/FamilyInheritance.ttslua +++ b/src/playercards/cards/FamilyInheritance.ttslua @@ -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)