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]

Can I have more than one of the same trading card? Can I have more than one of the same trading card?

Posted On: January 22, 2023
Steam now has trading cards. In order to get them, you're supposed to play specific games (currently there are only 6 games supported, but they've said more will come).However, it's only possible to ...[More]


How does Steam Input measure time? How does Steam Input measure time?

Posted On: March 18, 2023
How are units of time measured in the Steam Input menus? For example, if I set an action's Fire Start Delay to to 100, how long will the delay be? Question from user Stevoisiak at gaming.stacke...[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]


Who picks your locks and disarms your traps... Who picks your locks and disarms your traps...

Posted On: May 18, 2024
. if not Astarion? I'm considering ditching him for the first time in my second run, but he is my lockpicker and trap disarmer, and Act 3 has many areas full of traps and locks. Of course, I could mak...[More]


Is Minecraft Turing-Complete? Is Minecraft Turing-Complete?

Posted On: August 8, 2020
Minecraft has the redstone wires mechanism that can be used to build circuits. Is Minecraft Turing-Complete, i.e. can it be used to simulate a Turing Machine (if we ignore the problem of infinite memo...[More]


Craziest take you've heard in the BG3 community? Craziest take you've heard in the BG3 community?

Posted On: June 14, 2025
I just saw someone argue unironically that Wyll is meaner than Astarion and Minthara.Question from user DearPersimmon8155 at BaldursGate3 at reddit.com.Answer:evil Durge murder hobo is actuelly the mo...[More]


How do I disable radiant quests in Skyrim? How do I disable radiant quests in Skyrim?

Posted On: April 27, 2024
I'm a completist. I like to finish EVERYTHING. Skyrim creates a problem for me; it never ends.Is there a way to disable radiant quests, perhaps in the console?Is there a downside to disabling radiant ...[More]


Are there any real counters to supers in Crucible? Are there any real counters to supers in Crucible?

Posted On: March 5, 2024
In every single Crucible match I have played since the start of Destiny 2 New Light, supers have felt completely uncounterable and pretty much oneshot me all the time. I can't possibly think of any o...[More]


What does the padlock icon in Pokemon summary page mean? What does the padlock icon in Pokemon summary page mean?

Posted On: April 6, 2023
I've noticed that there's a padlock icon in every Pokemon summary page, but I can't figure out its meaning or how to use it. How can you lock a Pokemon? And lock from what? Or is tha...[More]


Why is Ranrok so difficult to defeat is it my offence? Why is Ranrok so difficult to defeat is it my offence?

Posted On: August 31, 2023
His health bar barely goes down feels like it’s gonna take 3 weeks to defeat him. Question from user typicalking97 at HogwartsLegacyGaming at reddit. Answer: Even I was badly stuck ther...[More]