Full traceback:
File "game/locations.rpy", line 4784, in script
if renpy.random.randint(1,3)<get_stat(LUCK)+1:
File "renpy/ast.py", line 2115, in execute
if renpy.python.py_eval(condition):
File "renpy/python.py", line 1092, in py_eval
return py_eval_bytecode(code, globals, locals)
File "renpy/python.py", line 1085, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/locations.rpy", line 4784, in <module>
if renpy.random.randint(1,3)<get_stat(LUCK)+1:
File "game/script.rpy", line 332, in get_stat
return int(player.stats[which]+player.bonus[which]+math.ceil(player.buff[which]*.125))
File "renpy/revertable.py", line 217, in __getitem__
rv = list.__getitem__(self, index)
IndexError: list index out of range