Attacking an enemy with same damage type as its resistance will deal a guaranteed not very effective hit that scales based on its not very effective hit multiplier. The default multiplier is 25% less damage.