merge main

This commit is contained in:
Chr1Z93 2024-08-04 00:01:43 +02:00
parent d81d395f2e
commit 226e7be0fa

View File

@ -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