Infinite jumps

In my game, there is a section called the hot zone. While players are in the hot zone, their shot becomes shorter. Also, while they are in this area, they have infinite jumps. I want to get rid of this without interfering with the hot zone.
Please help
https://flowlab.io/game/play/1465748

I recommend to use a raycast that points down and looks for the ground.