How can I disable use of a macro if a spell is on cooldown?

[BACK]
How can I disable use of a macro if a spell is on cooldown?
Posted On: January 29, 2023

As a Shadow Priest, I use a macro to announce to those nearby who I'm casting Power Infusion on. I do this for clarity in a raid and Mythic+ setting. It works fairly well.


The problem I'm encountering is that I'm sometimes pressing this macro before Power Infusion's cooldown timer is over. This causes the /yell message to send regardless of whether I actually cast Power Infusion or not, leading to me awkwardly mentioning in voice chat that I've not, actually, cast Power Infusion.


Here's my current macro:.


#showtooltip Power Infusion.


/target [@mouseover,help,nodead][help,nodead][@player].


/cast Power Infusion.


/yell Casting Power Infusion on %t.


/targetlasttarget.


I'm abusing /targetlasttarget to make this an easy-to-use mouseover macro.


Is there a way to make this macro not execute at all if Power Infusion is on cooldown?


Question from user Spevacus at gaming.stackexchange.com.


Answer:

So Blizzard removed the ability for a macro to make a determination whether or not to cast a spell. People were abusing this and making automated combat macros that would always cast the most effective barrage of spells/attacks in combat, and it was a game-changer for people on both sides.


You can check that a spell is on cooldown in Lua (https://wowwiki-archive.fandom.com/wiki/API_GetSpellCooldown), but you can't call that from a macro.


(Calling Lua from a macro was the main part of what was removed from the macro abilities.).


Answer from user Tim S. at gaming.stackexchange.com.



[BACK]
How can I disable use of a macro if a spell is on cooldown?
Posted On: January 29, 2023

As a Shadow Priest, I use a macro to announce to those nearby who I'm casting Power Infusion on. I do this for clarity in a raid and Mythic+ setting. It works fairly well.


The problem I'm encountering is that I'm sometimes pressing this macro before Power Infusion's cooldown timer is over. This causes the /yell message to send regardless of whether I actually cast Power Infusion or not, leading to me awkwardly mentioning in voice chat that I've not, actually, cast Power Infusion.


Here's my current macro:.


#showtooltip Power Infusion.


/target [@mouseover,help,nodead][help,nodead][@player].


/cast Power Infusion.


/yell Casting Power Infusion on %t.


/targetlasttarget.


I'm abusing /targetlasttarget to make this an easy-to-use mouseover macro.


Is there a way to make this macro not execute at all if Power Infusion is on cooldown?


Question from user Spevacus at gaming.stackexchange.com.


Answer:

So Blizzard removed the ability for a macro to make a determination whether or not to cast a spell. People were abusing this and making automated combat macros that would always cast the most effective barrage of spells/attacks in combat, and it was a game-changer for people on both sides.


You can check that a spell is on cooldown in Lua (https://wowwiki-archive.fandom.com/wiki/API_GetSpellCooldown), but you can't call that from a macro.


(Calling Lua from a macro was the main part of what was removed from the macro abilities.).


Answer from user Tim S. at gaming.stackexchange.com.



[BACK]

Crossed Wand final round Crossed Wand final round

Posted On: August 1, 2023
I just can't do it. I keep trying. That dummy practice is useless as its not at all like the real dual I just keep going back and back, and sie. The opponents even reheal? Sebastian is no bloody h...[More]


Team Fortress 2 Bonus Points and How To Get Them Team Fortress 2 Bonus Points and How To Get Them

Posted On: June 11, 2023
Is there a comprehensive list of ways to earn bonus points in TF2?. I have seen here and there one way to do it with this class or the other, but there seems to be no complete list that I've fo...[More]


What happens to free games obtained through PlayStation Plus after it expires? What happens to free games obtained through PlayStation Plus after it expires?

Posted On: March 3, 2023
I bought a three months membership for PlayStation Plus some time ago. This membership has already expired. While it was active, I got the classic PSOne Resident Evil titles for free. Will I be able t...[More]


Neds Island weapon slots and backpack SDU in DLC Neds Island weapon slots and backpack SDU in DLC

Posted On: March 24, 2023
I have started playing Ned's Island. Will I unlock all weapon slots and backpack slots without completing original content? Question from user Dmitry Mukhin at gaming.stackexchange.com. Answ...[More]


Anyone else find slapping the daedalion keys nearly impossible? Anyone else find slapping the daedalion keys nearly impossible?

Posted On: September 8, 2023
Do I have the worst reaction time in the world or is timing the slaps on these damn keys nearly impossible. I've been stuck on this one key for over 20 min just trying to slap it but it's so d...[More]


In Ben 10 Alien Force, How do you defeat the two huge snakes that come out of the wall? In Ben 10 Alien Force, How do you defeat the two huge snakes that come out of the wall?

Posted On: April 2, 2023
In Ben 10: Alien Force – Vilgax Attacks (Xbox 360), how do you defeat the two huge snakes that come out of the wall? Question from user Bravax at gaming.stackexchange.com. Answer: It se...[More]


Which frigate in Eve has the fastest sub-warp speed after fittings and skills? Which frigate in Eve has the fastest sub-warp speed after fittings and skills?

Posted On: March 9, 2023
In Eve, one can easily look up the base stats for various ships by checking their info pages from the market. The interceptors are probably the fastest ship class in the game, but it's hard to ...[More]


Can you import a save from Walking Dead Season 1 to Season 2? Can you import a save from Walking Dead Season 1 to Season 2?

Posted On: March 25, 2023
I recently bought Walking Dead Season 2. I remember hearing that Season 2 might import your decisions from Season 1. Is this true and if so is there anything I need to do to make it work? Question ...[More]


Can a missed shot in Xcom2 still execute? Can a missed shot in Xcom2 still execute?

Posted On: July 5, 2023
If you have a weapon which has both a Repeater and a Stock attached to it. Is there any chance that a missed shot will trigger the Repeater?. My assumption is that it will not as the actual shot di...[More]


Do you ever cast other smites over Divine as Paladin? Do you ever cast other smites over Divine as Paladin?

Posted On: April 26, 2026
Like thunderous smite for example.Question from user Cagedglobe at BaldursGate3 at reddit.com.Answer:Thunderous Smite is decent; Thunder damage is a good type of damage, and knocking enemies prone giv...[More]