Refactor ray functions for damage-dealing wands.