I've got this bug on Golisopod's ability, emergency exit, where it hit the HP below 50% by an attack and the ability did not activated. It happened with me more than once already. You can see in this battle:
http://replay.pokemonshowdown.com/gen7pokebankou-492956739