Thanks a lot for playing!
You're right, I limit the target to one and didn't account for the "closest" target, so the damage ends up hitting whichever target was added last to the list.