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
end
chaosTokens[indexOfReturnedToken] = drawChaosToken(params)
chaosTokens[indexOfReturnedToken] = token
if redrawData.triggeringCard == "FalseCovenant" then
blessCurseManagerApi.removeToken("Curse")
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
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".
> buttonValue = "Cancel"
> buttonIcon = "token-frost"
> buttonColor = "#404450E6"
> buttonFontSize = 300
> buttonValue = "Cancel"
> buttonIcon = "token-frost"
> buttonColor = "#404450E6"
> buttonFontSize = 300
> originParams = {
> triggeringCard = "ClaypoolsFurs",
> redrawnTokenType = "random",
> VALID_TOKENS = {
> ["Frost"] = true
> }
> }
require("playercards/CardsThatRedrawTokens")
> originParams = {
> triggeringCard = "ClaypoolsFurs",
> redrawnTokenType = "random",
> VALID_TOKENS = {
> ["Frost"] = true
> }
> }
> require...
----------------------------------------------------------]]
local turnOnHelper