The bad effect must not be the means by which one achieves the good effect. The right-intention condition. The intention must be the achieving of only the good effect, with the bad effect being only an unintended side effect.