fixes #5693

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