Resistance Discounting

Fix a variable name, and added a continue statement for efficiency