Fixes generation memory leaks, finalizes combat text