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 any use for crystallized charges after energy cells are maxed in Zelda? Is there any use for crystallized charges after energy cells are maxed in Zelda?

Posted On: June 23, 2023
I've been focusing on upgrading my energy cells so I can keep creating larger Zonai devices and have them active for longer. I've been exchanging Zonaite for crystallized charges, but have als...[More]


I swear I need them all. I don't have a problem! I swear I need them all. I don't have a problem!

Posted On: January 6, 2025
Question from user Nevaroth021 at BaldursGate3 at reddit.com.Answer:Look, at least you are just herding scrolls. I hoard weapons and armor to outfit a small army, but i cant sell them!.Answer from use...[More]


Stuck in Marathon 1 level 5 Stuck in Marathon 1 level 5

Posted On: March 4, 2024
I have gotten to level 5 (Couch Fishing) in Marathon, where you have to flip 3 switches to prevent Durandal's access to that area. In the beginning Leela tells you where the switches are, but doesn't ...[More]


I don't like Gale I don't like Gale

Posted On: April 7, 2026
I know I'm not alone in this opinion either, but there's also a shocking amount of people who love Gale so I'm trying to understand the appeal. .Please understand, I have used Gale in my party all the...[More]


Can I bind a key to a macro without applying it on an action button? Can I bind a key to a macro without applying it on an action button?

Posted On: January 24, 2023
So far all I can do is to create a macro, place it on an action button, and make sure that this action bar has a key bound to it. But now I'm running out of action buttons.I would like to bind a key (...[More]


I get huge FPS drops when I move my mouse in certain games I get huge FPS drops when I move my mouse in certain games

Posted On: May 19, 2023
As the title says, I am getting huge FPS drop in some games. Currently, I'm having issues in:. Apex Legends. Marauders. 7 Days to Die. What's happening is, when I'm not movi...[More]


What are some tactics to fortify villages and their population against outside attack? What are some tactics to fortify villages and their population against outside attack?

Posted On: January 29, 2023
I recently discovered my homely village has been ransacked by a marauding horde of zombies. They managed to get inside one of my large apartment houses and wiped out all but two (!) of the village pop...[More]


Whats the air intake parts air drag in Kerbal Space Program past 1.0? Whats the air intake parts air drag in Kerbal Space Program past 1.0?

Posted On: April 3, 2023
I've been considering increasing efficiency of my early launch stages by adding jet engines. I found an old thread discussing the idea, and one post struck me as "make-or-break" of my id...[More]


In Yakuza 0, How do I fight the 3rd to last opponent in the Colosseum? In Yakuza 0, How do I fight the 3rd to last opponent in the Colosseum?

Posted On: March 28, 2023
I have fought every opponent at the Bed of Styx colosseum except for one. Even after repeating every tournament multiple times, I haven't met the third to last person in the opponent list. Is t...[More]


Build the greatest possible sleight of hand. Build the greatest possible sleight of hand.

Posted On: December 14, 2025
I'm looking to start a new campaign in honor mode for myself. In my current campaign, I'm having a lot of trouble buying items from merchants, even though I'm collecting everything in the world to sel...[More]