Yeah, the HP code is interesting. It seems to be an issue when you are facing someone with more than one pokemon, At least for me, their fist pokemon goes down, but when they bring out the next one it also has unlimited HP and simply disabling the code does not fix it.