Trying to add attacks, but it's not working

So, I've got this random Mario fangame that I'm trying to see if I could make a game of my own out of, using it as a base. I've been trying out using common events to create a new attack, but I've been getting an error. Here's what I'm dealing/working with right now. Any clues on how to fix this?

screen1.png

screen2.png

screen3.png
Well, you could send me a DM with a demo to see if I can test it thoroughly and find out where it passed a nil value to that method. Sometimes it's not obvious at all.
Try deleting the break loop. Your common event doesn't have a loop. Also the End event processing probably isn't necessary either.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-add-attacks-but-its-not-working.154068/