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 is the music in the Dazed and Confused mission in Far Cry 4? What is the music in the Dazed and Confused mission in Far Cry 4?

Posted On: January 24, 2023
I've just been playing the Dazed and Confused level and was wondering what the music was. It's a mission with Yogi and Reggie done under the influence of drugs. I was curious if it was a no...[More]


Am I the only one with a light crush on Hogwarts Legacy Rookwood? Am I the only one with a light crush on Hogwarts Legacy Rookwood?

Posted On: June 5, 2023
Question from user PaletteSizeQueen at HogwartsLegacyGaming at reddit.com. Answer: no you’re not alone. i also find him a tad attractive lol. Answer from user itzclara_ at HogwartsLegac...[More]


Can I use Xbox 360 controllers with Xbox Classic (first generation of Xbox)? Can I use Xbox 360 controllers with Xbox Classic (first generation of Xbox)?

Posted On: November 12, 2023
This is a tricky question and I can't find reliable answer anywhere on the Internet. I love my old Xbox Classic (the first Xbox console from 2001). Unfortunately both my original pads have died...[More]


I dont want NPCs to get killed by Vampire Attacks in Dawnguard I dont want NPCs to get killed by Vampire Attacks in Dawnguard

Posted On: July 24, 2023
I bought Dawnguard before ending a questline from Skyrim. Because of that, I often visit main cities to do some quests. Every time I visit a city, I find dead bodies of NPCs that I talked to earlier. ...[More]


What job would your MC Perdue after finishing school at Hogwarts? What job would your MC Perdue after finishing school at Hogwarts?

Posted On: June 21, 2023
I think my Ravenclaw would love to be come an Unspeakable. We loved professor Hecat and with what we’ve learned about the ancient magic I’d imagine it would be the profession that helped h...[More]


Can I skip the launcher when launching Baldurs Gate 3 from Steam? Can I skip the launcher when launching Baldurs Gate 3 from Steam?

Posted On: July 12, 2023
I don't want to have to go through the "Larian Launcher" when I want to play Baldur's Gate 3 in Steam. How can I skip it? Question from user Oak at stackexchange. Answer: To...[More]


Mass Effect 3 Where is this terminal? Mass Effect 3 Where is this terminal?

Posted On: May 3, 2023
I have to activate the terminal for the Hanar Diplomat quest, but I can't seem to find it? The only terminal I can find in the security checkpoint area (I'm standing next to it on the map) can...[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 can I fix a Minecraft stair to its shape? How can I fix a Minecraft stair to its shape?

Posted On: July 2, 2023
I am trying to build an arch roof using stairs and in doing so I need stairs to get a fixed stair shape. Here are some pictures to clarify:. Two stairs together can form a corner stair:. However...[More]


Is it necessary to play Crysis Warhead in order to enjoy the full game experience? Is it necessary to play Crysis Warhead in order to enjoy the full game experience?

Posted On: March 27, 2023
I want to buy Crysis, but I see there are Crysis, Crysis Warhead, and Crysis Max Edition. The thing here is that Crysis Warhead has a multiplayer component, but does it add anything extra to the story...[More]