Add error checking to attack-modifier