Boss fight

Hello, I'm working on a game at the core engine, there are a few enemy skeletons and a boss battle in the game yet, but there is a problem with the boss battle. When the boss attacks me, my character is not damaged and I get an error message, and when the skeleton dies, the boss also dies. (Note: I got bosses and skeletons from the community.)