Fred zone attack eval: fix bug in previous commit

Need to move max_damage variable out of 'if' codeblock to make it
available later.