Raytraceto mechanic not properly offsetting start location

Summary

Setting the forward offset, starting y offset, or fromorigin on raytraceto mechanics will not modify the starting location of the ray.

Steps to reproduce

  • Create a raytraceto skill modifying its starting location, like one of these: https://pastebin.com/qkqhBf3r

  • Restart the plugin, and run one of the skills using /mm test cast <skillname>

Current behavior

The offsets will not effect the starting point of the ray, and instead effect the ending point.

Intended correct behavior

The starting point of the ray should be offset instead of the ending point.

Server log file

https://dpaste.com/4Q9WHE2BT (pastebin marked my logs as offensive for some reason so I had to use a different site)

Debug log snippet

https://pastebin.com/TqpBwvuk

Proposed fixes

From what I can see, it seems like there's just some small mistake with the code that accidentally applies the start position modifications to the end position instead.

Edited by Eyasu