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]

In Skyrim How do I unselect a completed quest? In Skyrim How do I unselect a completed quest?

Posted On: May 3, 2023
A completed quest in my journal is selected, as shown below:. This causes new quests to not be selected immediately. How can I unselect it? Clicking on the quest title does not deselect it. Q...[More]


Efficient use of Construction Robots Efficient use of Construction Robots

Posted On: January 5, 2024
I often find myself constructing things using blueprints because it's so much easier than laying multiple things by hand. I was recently doing this at a remote mine site, that I had connected via ...[More]


Just need some advice ?? Just need some advice ??

Posted On: November 28, 2025
Im doing my first real play through, and decided to play on tactician and would really like some advice/tips. So far i made it to the cove after finding the guy who can respec your characters. Battle...[More]


Dry eye from not blinking enough During Game Play Dry eye from not blinking enough During Game Play

Posted On: June 10, 2023
Sometimes when I play games that require a lot of focus (CS, Starcraft 2) after 10-20 minutes of game I notice that my eyes are red, from not blinking enough. If this happens to you too how do you ...[More]


Which is the original L’Abbaye des morts game? Which is the original L’Abbaye des morts game?

Posted On: March 20, 2024
The game L’Abbaye des morts can be found implemented for many retro and modern systems. For example:.Commodore 64.Sega.ZX Spectrum.It is visible that the game is implemented by different people or c...[More]


Do BG fans feel threatened by Bethesda's Starfield? Do BG fans feel threatened by Bethesda's Starfield?

Posted On: September 24, 2023
Do you think Starfield is going to completely overshadow BG3? Question from user ThanosofTitan92 at BaldursGate3 at reddit. Answer: No. Answer from user funkyfritter at BaldursGate3 at red...[More]


How do Steam Workshop mods and Nexus mods interact? How do Steam Workshop mods and Nexus mods interact?

Posted On: February 9, 2023
All of my mods so far are on the Steam Workshop, but there are a few on Nexus that look to be quite useful. My question before I dive in is are there any potential problems that I need to be aware of...[More]


How do you discover combos in Street Fighter V? How do you discover combos in Street Fighter V?

Posted On: April 11, 2023
If I wanted to learn a character in SFV (or any fighting game, really), how should I go about discovering new combos (without the use of videos). Should I be looking at frame data? Question from us...[More]


What to know for first playthrough in Hogwarts Legacy? What to know for first playthrough in Hogwarts Legacy?

Posted On: August 18, 2023
Hey, just looking for some pointers that would help me for my first time playing - mostly what decisions have a later impact on gameplay, or quality of life tips :) no spoilers would be appreciated! T...[More]


Can players spawn on glass blocks in Minecraft? Can players spawn on glass blocks in Minecraft?

Posted On: July 18, 2023
I know that mobs can't spawn on glass blocks as can be seen from this question and answer. But what about players? If I have my spawn area covered in glass blocks, will I be able to spawn on th...[More]