After applying an entry hazard like Spikes or Stealth Rock, once you knock out a Pokemon, if you left click a few times to proceed with the battle, the next Pokemon will be sent out and it will say "X took damage from Spikes" but no damage is actually applied.
If you instead wait for ages once...