Skill Self Effects Tutorial Problem

I am making t tutorial game and following it to the letter and was play testing it when I this error accord after I attack any monster Error.jpg Can anyone help me fix it?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Look for the solution(s) in the following thread: here

Post #9 has an edited version of the script that should fix that error.
Thank you Selchar it doesn't crash anymore
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-self-effects-tutorial-problem.16714/