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]

Using in game mod manager locks you out of achievements Using in game mod manager locks you out of achievements

Posted On: September 15, 2024
This is a major PSA for anyone thinking about using mods: If you still want to earn achievements, do not turn those mods on! Even if it's just for some hair or clothing. .As someone who has never used...[More]


Should I not have won a culture victory by now in Civilization 6? Should I not have won a culture victory by now in Civilization 6?

Posted On: April 8, 2023
I've been playing Civilization 6 as Tomyris for a while and thought I was comfortably winning a culture victory, but. the game seems to want to keep going without giving me the option to acce...[More]


Screen flashing during the day in Watch Dogs Screen flashing during the day in Watch Dogs

Posted On: September 25, 2023
Sometimes textures and the screen start flashing while I play the game. But this only happen during the day. I'm playing Watch Dogs 1 from Steam. Question from user Diego Borba at stackexcha...[More]


How do I unlock Floaro Gardens in Pokémon Legends: Arceus How do I unlock Floaro Gardens in Pokémon Legends: Arceus

Posted On: July 12, 2023
I want to unlock Floaro Gardens in Pokémon Legends: Arceus, but I didn't play Pokémon Sword or Shield. Is there any way to unlock it? Question from user Maria Zapata at stackexcha...[More]


When being killed by an object or non-player, does that entity gain the XP I had in diep.io? When being killed by an object or non-player, does that entity gain the XP I had in diep.io?

Posted On: April 16, 2024
If you are killed by a Sentry/Boss/Shape in arras.io, it appears on the leaderboard and Sentries and Crashers get visibly bigger.I would like to know if this is the same in diep.io even though these t...[More]


How do I unlock scenes in Star Wars Tiny Death Star? How do I unlock scenes in Star Wars Tiny Death Star?

Posted On: April 21, 2023
Are scenes only unlocked from bitizens with a "?", or any bitizen may trigger them? Because I'm at level 25, and I don't remember the bitizen that triggered my only scene. Ques...[More]


Tactical stance in COD MW3 - is there RL equivalent? Tactical stance in COD MW3 - is there RL equivalent?

Posted On: January 19, 2024
The new tactical stance in COD MW3 - is it based on reality? I can't imagine why holding a weapon tilted would give you an advantage in combat. Any insight? Question from user Boppity Bop at st...[More]


What is the best gear to wear when fighting Ranrok in Hogwarts? What is the best gear to wear when fighting Ranrok in Hogwarts?

Posted On: April 12, 2023
Help.  What gear should I use? Question from user Legofan990 at HogwartsLegacyGaming at reddit.com. Answer: Honestly, its a really easy fight so I wouldnt worry about gear too much. J...[More]


What is the maximum number of tags a mob can have in Minecraft? What is the maximum number of tags a mob can have in Minecraft?

Posted On: February 26, 2023
In minecraft 1.16.1, If you run this command two times: /tag @p add test you will get a message that says, Target either already has the tag or has too many tags. So that means i know there is a limit...[More]


Too easy on normal in Hogwarts Legacy? Too easy on normal in Hogwarts Legacy?

Posted On: April 25, 2023
Hey all just wondering if there any others here who find this game really easy on normal mode? Also be curious to know if the same folks who find this quite easy play games like Dark Souls etc. I v...[More]