From 226e7be0fa372dfa42d7bf57679bef887fe62939 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sun, 4 Aug 2024 00:01:43 +0200 Subject: [PATCH] merge main --- src/core/Global.ttslua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 68d939ce..36c774eb 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -2060,9 +2060,14 @@ function TokenManager.spawnMultipleTokens(card, tokenType, tokenCount, shiftDown if tokenType == "resource" and stateID ~= nil and stateID ~= 1 then callback = function(spawned) spawned.setState(stateID) end elseif tokenType == "universalActionAbility" then - local matColor = playermatApi.getMatColorByPosition(card.getPosition()) - local class = playermatApi.returnInvestigatorClass(matColor) - callback = function(spawned) spawned.call("updateClassAndSymbol", { class = class, symbol = subType or class }) end + callback = function(spawned) + local matColor = playermatApi.getMatColorByPosition(card.getPosition()) + local activeInvestigatorData = playermatApi.getActiveInvestigatorData(matColor) + spawned.call("updateClassAndSymbol", { + class = activeInvestigatorData.class, + symbol = subType or activeInvestigatorData.class + }) + end end for i = 1, tokenCount do