Well, you can't use that function to measure target distance. I'm fairly certain it just returns if the ability ID is castable from the current range. Cosmos' (and CTMod's, which I don't think we released due to its faults) TargetDistance mod relies on the difference between the positions on the map. In order to make a precise calculation, we would need the height difference between the characters too. Unfortunately, that's not possible to get.
__________________
CTMod Developer
|