Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

If card has action"Move 3 from deck Top to discard"and discard a card which have passive effect "Enter discard". It will happen error:

TypeError

Cannot read property 'item' of undefined


Card one action:

<Card Actions>

If user.isStateAffected(13)

Eval user.removeState(13)

If user.isStateAffected(38)

Eval $gameVariables.setValue(1, $gameVariables.value(1) + 1)

Move 3 from deck Top to discard

Eval user._firstFlag = true

Eval user._lastType = "Skill";

</Card Actions>


Card two action:

<Card Passives>

Enter discard: Skill 88

</Card Passives>