BOSS SPECIAL AttACK not working

i have a couple bosses in my game so far and both of their specials require the player to not be on screen because the animation for the boss attack has the player in it and id like the player to re appear when the attack is over , when the boss attempts to prform the attack , sometimes the player attacks or jumps or blocks at the wrong time causing the player to dissapear and not show back up, can anyone help me with this, it is a crucial element in my boss battles

also sorry for all the commas lol i hope i made this understandable im not very skilled in my writing arts

game link?