Fix the targeting to prioritize near targets rather than far-off targets.

and/or

Fix animation lock.