Page 1 of 1

Hunter spell MarkedShot API problem

Posted: 09 Feb 2018, 05:53
by LdB
I have been trying to customize the hunter rotation and there is a funky thing with the API that I guess is a bug

local _MarkedShot = 185901;
local msa, ms_cd = MaxDps:SpellAvailable(_MarkedShot, timeShift);

Always returns that the spell "MarkedShot" is available when clearly it is not on the UI bar.

Re: Hunter spell MarkedShot API problem

Posted: 11 Feb 2018, 04:51
by Kaminaris
You might be right. Try checking for Vulnerable debuff on target, should be more accurate

Re: Hunter spell MarkedShot API problem

Posted: 11 Feb 2018, 14:57
by LdB
Yes that worked.

I am assuming blizzard don't let us track the actual keypress.

What I was going to do was up up the opening sequence by making a state machine.
By looking at current spell I can advance the state machine but in a couple of places I need the same key twice and current spell would just read the same :-).

Re: Hunter spell MarkedShot API problem

Posted: 12 Feb 2018, 03:06
by Kaminaris
Glad it worked, if you dont mind share what you have fixed so i can push it to official

Re: Hunter spell MarkedShot API problem

Posted: 13 Feb 2018, 05:06
by LdB
Will do soon as I have verified everything is working correctly.

I am giving my maxdps a bit of a facelift merging some icehud code as a programmer I couldn't help it :-)

https://github.com/LdB-ECM/Docs_and_Ima ... hunter.jpg

I wanted my health and focus on left, the target health and stats on right and the spell flash somewhere under my image.
Still working last bits out.