Cache module script problem.

Alright so I'm using luna engine for RPGMVXA I wanted to use the sideview battler script but the script went outta whack when I copy and pasted it into the base file,


so I used a copy of the TSBS project as the base, however when I try to open the "status" screen, the game crashes and this pops up,

Spoiler
Script 'Cache' line 88: NoMethodError occurred.


undefined method 'empty?' for nil:NilClass





the only script I added in was Yanfly's enemy HP script, nothing more. and didn't touch anything else.

Original thread: https://forums.rpgmakerweb.com/threads/cache-module-script-problem.63243/