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]

What does disliking a player do in DOTA 2? What does disliking a player do in DOTA 2?

Posted On: October 18, 2023
If I click "dislike player" after a match, what does that do? Question from user nightblade9 at stackexchange. Answer: Dota 2 Summer 2023 Patch notes state:. Additionally, we&rsq...[More]


How to make Steam not count some games towards Average Game Completion Rate? How to make Steam not count some games towards Average Game Completion Rate?

Posted On: February 18, 2023
In Steam, some of the Showcases show the Avg. Game Completion Rate. This takes into account the percentage of achievements you have in average of all your games. Is there any way to make it not cou...[More]


Can you keep a piglin from turning into a zombified-piglin in the overworld? Can you keep a piglin from turning into a zombified-piglin in the overworld?

Posted On: March 2, 2023
Is it possible for you to keep a piglin unzombified in the overworld, whether it be through use of commands or otherwise? Question from user 12 rhombi in grid w no corners at gaming.stackexchange.c...[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]


Can I turn off this Necromancer visual effect? Can I turn off this Necromancer visual effect?

Posted On: June 16, 2023
I was in a team with a Necromancer and one the skills was to create a patch of black smoke. However this skill seems to just obscure everything! My character, my loot, enemies and even chests. This...[More]


Playing for the first time. What should I know? Playing for the first time. What should I know?

Posted On: April 2, 2026
I made my own character up. Didn’t pick any of the specific characters if that makes sense. I don’t understand the game at all except that it’s a dungeon and dragon type game. And that you can ...[More]


How can I get more ancient arrows in Breath Of The Wild? How can I get more ancient arrows in Breath Of The Wild?

Posted On: August 11, 2023
I've finished the Divine Beast quests and heaps of side quests, but I've never received any more than a handful of ancient arrows. How can I buy or farm more? Question from user l0b0 at sta...[More]


How can I find out the rarest Steam achievement? How can I find out the rarest Steam achievement?

Posted On: March 6, 2023
Having completed the most difficult achievements for a couple of games, I started wondering how difficult the worst achievements can be. One well-defined measure for difficulty of an achievement is it...[More]


What game is this character on Nintendos eShop from? What game is this character on Nintendos eShop from?

Posted On: April 19, 2024
I've been planning to buy a 3DS and was exploring Nintendo's eShop online and I ran across one of the buttons advertising games with DLC and it has a character that I have never seen before?Does anyon...[More]


YO-KAI WATCH 2: Fleshy Souls - What donuts should I pick? YO-KAI WATCH 2: Fleshy Souls - What donuts should I pick?

Posted On: March 19, 2023
Right at the beginning of the game you are asked to choose between Soul Donuts and Spirit Donuts. Does this have any actual affect on the game? Does it matter what you pick? Question from user user...[More]