fixes #5693

not much to see here.
looks like a derp was made in the checks.
also renamed afterattack proximity parameter to proper name.