fixes to allow mod to build

This commit is contained in:
dscarpac 2024-06-24 23:22:05 -05:00
parent a1155fe041
commit 7054c5a394
2 changed files with 13 additions and 15 deletions

View File

@ -394,8 +394,7 @@ function returnAndRedraw(_, tokenGUID)
params.tokenType = redrawData.redrawnTokenType params.tokenType = redrawData.redrawnTokenType
end end
chaosTokens[indexOfReturnedToken] = drawChaosToken(params) chaosTokens[indexOfReturnedToken] = drawChaosToken(params)
chaosTokens[indexOfReturnedToken] = token
if redrawData.triggeringCard == "FalseCovenant" then if redrawData.triggeringCard == "FalseCovenant" then
blessCurseManagerApi.removeToken("Curse") blessCurseManagerApi.removeToken("Curse")
end end

View File

@ -42,20 +42,19 @@ The following parameters modify the appearence of the XML button and are not lis
EXAMPLE: Claypool's Furs EXAMPLE: Claypool's Furs
This card can only redraw the Frost token, and is replaced with a random token from the bag. This card can only redraw the Frost token, and is replaced with a random token from the bag.
As a nice reminder the XML button takes on the Frost color and icon with the text "Cancel". As a nice reminder the XML button takes on the Frost color and icon with the text "Cancel".
> buttonValue = "Cancel" > buttonValue = "Cancel"
> buttonIcon = "token-frost" > buttonIcon = "token-frost"
> buttonColor = "#404450E6" > buttonColor = "#404450E6"
> buttonFontSize = 300 > buttonFontSize = 300
> originParams = { > originParams = {
> triggeringCard = "ClaypoolsFurs", > triggeringCard = "ClaypoolsFurs",
> redrawnTokenType = "random", > redrawnTokenType = "random",
> VALID_TOKENS = { > VALID_TOKENS = {
> ["Frost"] = true > ["Frost"] = true
> } > }
> } > }
> require...
require("playercards/CardsThatRedrawTokens")
----------------------------------------------------------]] ----------------------------------------------------------]]
local turnOnHelper local turnOnHelper