High Jump Kick sometimes hitting a Ghost type

Hey so I was battling Trainer Athlete Tor on Route 6 and he sent out his Hitmonlee. His Hitmonlee used High Jump Kick on my Haunter, and it landed and KO’d my Haunter. That was not supposed to happen though since Ghost types are supposed to be immune to Fighting type moves.

I don’t know if this is a bug or if Hitmonlee’s abilities got changed to Scrappy in this game. This wasn’t the first time this happened too. I can’t remember the exact details, but there was one other time on some route prior to Route 6 where another trainer had a Hitmonlee as well, and it also used High Jump Kick and it landed on my Haunter.

Has anyone else encountered this problem?

machops that come before the stronger pokemon usually have foresight