The old bugfix caused more bugs than it fixed.
It allowed the moves that called CheckHiddenOpponent to always hit in the semi-invulnerable turn of Fly and Dig, regardless of the Lock-On state of the opponent.
The new check accounts for the Lock-On state of the opponent, and reinstates the vanilla code that checked for the Flying and Underground states of the opponent.
The old bugfix caused more bugs than it fixed. It allowed the moves that called
CheckHiddenOpponent
to always hit in the semi-invulnerable turn of Fly and Dig, regardless of the Lock-On state of the opponent.The new check accounts for the Lock-On state of the opponent, and reinstates the vanilla code that checked for the Flying and Underground states of the opponent.