I found a bug.
Also spoilers.
After getting possessed by the ghost and waking up the next morning the game always crashes. This is the BBC code. After playing a bit more it only happened on the first meeting. I left, got stronger, came back and beat her. Then came lost again and it didn't crash.
[code]
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/renpy_battle.rpy", line 1152, in <module>
IndexError: list index out of range
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "script.rpyc", line 463, in script call
File "renpy_battle.rpyc", line 234, in script call
File "renpy_battle.rpyc", line 1152, in script
File "renpy/ast.py", line 1898, in execute
if renpy.python.py_eval(condition):
File "renpy/python.py", line 2276, in py_eval
return py_eval_bytecode(code, globals, locals)
File "renpy/python.py", line 2269, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/renpy_battle.rpy", line 1152, in <module>
File "renpy/python.py", line 992, in __getitem__
rv = list.__getitem__(self, index)
IndexError: list index out of range
Windows-10-10.0.22621
Ren'Py 7.4.11.2266
Town of Magic 0.61.015
Wed Nov 2 20:38:38 2022
[/code]