Fixed a critical bug before the final boss that emptied the party and made it impossible to continue.