Originally Posted by
xaq
can you show me a link to said API? I'm relatively new to PQR but seasoned developer, I have had to glean what little information I can from looking at other abilities writen by nova or KMD or something.
Right now I have a test rotation with just two abilities, arcane shot and glaive toss and it STILL seems to spam abilities when they aren't available even though I am checking the cooldown of the GCD spell #
so i edited the new abilities after looking at some druid nova code and have this.. but I STILL am getting "ability not ready" repeatedly - it obviously is only happening when i have plenty of focus to burn.
Note, I stole the original code for arcane shot from the KMD ability...
PHP Code:
if PQR_SpellAvailable(3044)
-- Arcane Shot usage code.
and UnitPower("player") > 30
or UnitBuffID("player", "109306")
or UnitBuffID("player", "34692")
or UnitIsDead("pet")
or not UnitExists("pet")
--and select(2,GetSpellCooldown(61304)) == 0
then return true end
--return true
PHP Code:
if not IsPlayerSpell(117050) then return false end
if PQR_SpellAvailable(117050)
and UnitPower("player") > 15
--and select(2,GetSpellCooldown(61304)) == 0
then return true end