[CF 1492] Transcendence: Transfer range check
tmw-issue-import opened this issue ยท 3 comments
Hi guys, I tried to configure in the TMW that the Transcendence: Transfer skill of the monk indicates when it is out of range but I could not with it someone could help me?
http://www.wowhead.com/spell=101643/transcendence
http://www.wowhead.com/spell=119996/transcendence-transfer
Posted by CurseForge user Bercket | Imported from CurseForge issue #1492 | Raw
Doesnt the Reactive Ability icon type serve this purpose? The spell is not useable if you're too far.
If you want to do real range checking, you might be able to do this with some scripting voodoo - basic idea:
- When you cast transcendence store the coordinates
- Have a LUA condition calculate the distance between current coords and where you cast it
Your main tool for this will be GetPlayerMapPosition but will probably require some trig to figure out properly
Posted by CurseForge user ariehg
So - I'm bored and trying to hack away at TMW so I got you this POC. It uses the method listed above to check distance and modify the icons appropriately (assumes max distance is 40yd)
you can play around with it a bit if you want. I would probably set the threshold at 35yd instead of 40 just to be on the safe side.
Posted by CurseForge user ariehg
A reactive ability icon will track this exactly as you desire.
^1^T^SType^Sreactive ^SName^STranscendence:~`Transfer ^SStates^T ^N1^T ^t^N2^T ^SAlpha^N0.5 ^t^N3^T ^t^N4^T ^t^t^SEnabled^B ^t^N84405^S~`~| ^Sicon^^
Checking based off map position would work in theory, but can't accommodate for Z-axis distance (Imagine you place your TP spot on the high ground in WSG, and you're down at the flag spawn).
Edited May 27, 2018
Posted by CurseForge user Cybeloras