[XP] Issue with Sideview Tankentai

I am running into an issue with an "Actor Advanced Status" script inside the sideview battle system from Enu and Atoa.  I am attaching screenshots of both the error message and the line of script it refers to.  It claims that "nil can't be coerced into Fixnum."   The Red outline surrounds the line of script pointed out by the error message.  This error occurs any time an enemy uses a skill that would apply a state to one of the actors, and it causes the game to crash.

ScriptErrorMessage1.png

ScriptError1.png

Original thread: https://forums.rpgmakerweb.com/threads/xp-issue-with-sideview-tankentai.39848/