Merge branch 'main' into global-api
This commit is contained in:
commit
d81d395f2e
@ -66,12 +66,16 @@ function onScriptingButtonDown(index, playerColor)
|
||||
|
||||
-- check for nearest investigator card and change action token state to its class
|
||||
elseif tokenType == "universalActionAbility" then
|
||||
callback = function(spawned)
|
||||
local matColor = playermatApi.getMatColorByPosition(position)
|
||||
local matRotation = playermatApi.returnRotation(matColor)
|
||||
local class = playermatApi.returnInvestigatorClass(matColor)
|
||||
callback = function(spawned)
|
||||
local activeInvestigatorData = playermatApi.getActiveInvestigatorData(matColor)
|
||||
|
||||
spawned.setRotation(matRotation)
|
||||
spawned.call("updateClassAndSymbol", { class = class, symbol = class })
|
||||
spawned.call("updateClassAndSymbol", {
|
||||
class = activeInvestigatorData.class,
|
||||
symbol = activeInvestigatorData.class
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user