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]

Minecraft doesnt launch with the Ultrasurf proxy? Minecraft doesnt launch with the Ultrasurf proxy?

Posted On: June 7, 2023
I often go to the library to play Minecraft. Since there are a lot of people playing there, enough people put in the wrong credentials such that the library IP is often temporarily banned from the Moj...[More]


What’s one line from the game you always seem to remember What’s one line from the game you always seem to remember

Posted On: March 10, 2026
Personally it’s “Listen here pipsqueak. Do not underestimate this opponent. At best you will have to blink of an eye to strike. Strike fist strike true defy the odds! For they are distinctly in it...[More]


How are the structure decks in Yu-Gi-Oh 5Ds World Championship 2010: Reverse of Arcadia unlocked? How are the structure decks in Yu-Gi-Oh 5Ds World Championship 2010: Reverse of Arcadia unlocked?

Posted On: April 2, 2023
In Yu-Gi-Oh! 5D's World Championship 2010: Reverse of Arcadia, I've unlocked a couple randomly (as far as I can tell), but I'd like to be able to buy them all. Does anyone know a way to un...[More]


How do supercharged slots work? How do supercharged slots work?

Posted On: April 19, 2024
I came back to No Man's Sky and a few things regarding the inventory have changed in the last months. Now I have some violet slots that are marked as supercharged.As I understood, the tech installed i...[More]


What are those icons in the top left of the Rain World hibernation screen? What are those icons in the top left of the Rain World hibernation screen?

Posted On: April 17, 2023
As the title says: what are those icons in the top left corner? Question from user Fritz at gaming.stackexchange.com. Answer: You killed some creatures during this life. The crossed bones and...[More]


How can I make a Custom Potion in Minecraft Bedrock Edition? How can I make a Custom Potion in Minecraft Bedrock Edition?

Posted On: January 24, 2023
Java Edition has a feature allowing one to make potions with any effect, duration and color. Can I do this in Bedrock Edition? Question from user Penguin at gaming.stackexchange.com. Answer: ...[More]


More questions from an outsider More questions from an outsider

Posted On: October 24, 2023
As I've seen more footage from Baldur's Gate 3 (As an outsider who can't play), I've become curious about a few more things, if people would feel up to answering them for me! . I...[More]


Patch 3 kinda sucks? Patch 3 kinda sucks?

Posted On: September 25, 2023
His Majesty has hair - just why? Raphael got a bad dye job (and basic horns?), as a Raphael simp - fuck this shit!. Shared stash. need I say more? Camera now focuses on Tav and you can't ...[More]


Need help with Quest The Man Behind The Moons Need help with Quest  The Man Behind The Moons

Posted On: April 6, 2023
I found all of them except I can't find out how to get behind the Level 2 unlock doors. I can't get Level 2 and 3 to learn until I turn in all the owls. I obviously can't get all the owls ...[More]


What do the checkmarks on caves mean in ToTK? What do the checkmarks on caves mean in ToTK?

Posted On: May 16, 2023
I've noticed that some cave icons on my map have checkmarks next to them while others don't. What does the checkmark symbol mean? Question from user scohe001 at gaming.stackexchange.com. ...[More]