well, if you deactivate invincibility when you stop touching enemy, then the game might mess up when touching two as once, and if you replace an entity with another, the invincibility might stop for a split second while it swaps out, and I can't tell exact angles, but ones that travel further through the trail, seem to have it happen more.