Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
In one of my battles today, opponent defense boosts were used in the calculation of damage output on critical hits. It happens on turns 6, 14, and 18. replay: http://replay.pokemonshowdown.com/ou-221162460