Skip to content

Fix: Patch for hand draw bug#81

Open
TheBenMunoz wants to merge 1 commit into
GuilloryCraft:mainfrom
TheBenMunoz:main
Open

Fix: Patch for hand draw bug#81
TheBenMunoz wants to merge 1 commit into
GuilloryCraft:mainfrom
TheBenMunoz:main

Conversation

@TheBenMunoz
Copy link
Copy Markdown

With only Extra Credit and Handy installed, game would often reach a state where the game would crash when trying to draw cards. After restarting and trying again, the same crash would happen.
This was the error message:
INFO - [G] 2026-04-08 09:19:36 :: ERROR :: StackTrace :: Oops! The game crashed functions/state_events.lua:352: attempt to index a nil value
The log file for one of the incidents is attached.
lovely-2026.04.08-08.36.22.log
I wrote a patch that adds a check that cards_to_draw[i].ability is not nil when cards[i].ability.extra_slots_used is accessed and it fixed the crash bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant