Allow it to take effect only when the shell's penetration is within a small margin of penetrating/not penetrating the target (1-2% or so, e.g. 121-122mm of pen vs 120mm of armour)

41