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]

Is there a way to summon Dogmeat to you in Fallout 4? Is there a way to summon Dogmeat to you in Fallout 4?

Posted On: May 1, 2023
I've recently started playing Fallout 4, and I've acquired Dogmeat. Long story short, I told him to stay in a small building so I could down a few raiders quietly but I forgot about him and I ...[More]


Which song best represents your Tav - Durge? Which song best represents your Tav - Durge?

Posted On: May 2, 2025
For me it's "Kraken Wanker" by Gnome.As the durge, he's a carefree rapscallion, but also has the power to doom everyone on a whim, and the song really vibes with that paradigm I think.What about you g...[More]


How do I sell off the junk in my ship for good? How do I sell off the junk in my ship for good?

Posted On: September 12, 2023
My current home ship was confiscated from some baddies and has some shielded cargo. I have upgraded a bit to increase my cargo capacity to safely store my belongings. However, I like collecting rocks ...[More]


Why does a voice say That won't work when missing attacks? Why does a voice say That won't work when missing attacks?

Posted On: October 5, 2023
Question from user greygryphon98 at BaldursGate3 at reddit. Answer: Adding onto other peoples answers - an ineffective strategy, under the guardians definition, seems to be one that doesnt activ...[More]


I don't understand why people think what happens to gale... I don't understand why people think what happens to gale...

Posted On: December 3, 2023
. Is a bad thing. He ascend to being a god, and he was as nice as he ever was. I'm really happy he achieved what he wanted, and now I have a god best friend. So what's the deal? Question fr...[More]


Do you pay a gold tax when beating the final boss in Heroes Of Hammerwatch? Do you pay a gold tax when beating the final boss in Heroes Of Hammerwatch?

Posted On: March 10, 2023
Throughout the game, you can deposit your found gold and ore in elevators to take to the surface, at a tax rate that depends on how much gold you have collected. I decided to be brave, and do an entir...[More]


Would the companion talk to each other about Tav - Durge? Would the companion talk to each other about Tav - Durge?

Posted On: November 8, 2023
Specifically if you manage to romance nearly all of them, do they just sit around the campfire and talk to each other about it, like it's the Bachelor/Bachelorette - Faerun edition? Or do they ...[More]


I keep having to reload and it’s getting annoying I keep having to reload and it’s getting annoying

Posted On: October 28, 2023
I keep forgetting to do things before entering nightsongs prison and having to reload. I thought I had got it, finally, but I looked up a checklist and I just straight up never found the one who was g...[More]


In Cookie Clicker how can I make profit from stocks? In Cookie Clicker how can I make profit from stocks?

Posted On: March 3, 2023
I am trying to use the stock minigame to make cookies. However, I am having trouble making a profit, because I don't know what patterns to look for in the prices. What should I look for when buyin...[More]


In Guild Wars 2, Is the area between Kessex Hills, Gendarran Fields and Lions Arch reachable? In Guild Wars 2, Is the area between Kessex Hills, Gendarran Fields and Lions Arch reachable?

Posted On: March 31, 2023
Well, I always thought it wasn't reachable since it's inhabited by the tengu, blocked off by the Dominion of Winds. But when I browsed through the explored map on the Guild Wars 2 Wiki, I foun...[More]