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]

Will PS4 game discs work on PS5 Console? Will PS4 game discs work on PS5 Console?

Posted On: May 4, 2023
I recently bought a PS5, after long wait. So, the first few games that I plan are - Bloodborne and Demon Souls. The only discs for PS4 available on Amazon India are that from PS4. So, will those di...[More]


Why do my kneazles have the triangle at the top of their box in Hogwarts Legacy? Why do my kneazles have the triangle at the top of their box in Hogwarts Legacy?

Posted On: March 5, 2023
Why do my kneazles have the triangle at the top of their box in Hogwarts Legacy? Question from user elliebeans90 at HogwartsLegacyGaming at reddit.com. Answer: Its the part of thier tail. ...[More]


What do the checkmarks on caves mean in ToTK? What do the checkmarks on caves mean in ToTK?

Posted On: May 16, 2023
I've noticed that some cave icons on my map have checkmarks next to them while others don't. What does the checkmark symbol mean? Question from user scohe001 at gaming.stackexchange.com. ...[More]


What happens if you transfer a fully EV trained LVL 100 Pokémon from Gen 2 to Pokémon Home? What happens if you transfer a fully EV trained LVL 100 Pokémon from Gen 2 to Pokémon Home?

Posted On: February 16, 2023
Basically, on modern gen Pokémon games, you can only EV train and max up to 2 EV stat at most (255-255 or 252-252-4). But in Pokémon Crystal Gen 2, you could EV train and max all EV stat...[More]


How do you gain treasure from fishing? How do you gain treasure from fishing?

Posted On: March 14, 2024
I know that you can gain treasure from fishing, (Saddles, enchanted books, enchanted bows etc.) but what is the criteria for collecting treasure? Does fishing in a specific biome count? Also, what are...[More]


How can I make Skip98 work on a laptop with Windows 7? How can I make Skip98 work on a laptop with Windows 7?

Posted On: June 10, 2023
My Mother in law was playing to an old freeware Skip-bo game on her Windows XP computer, it's called Skip98. You could still find it by goggling it, but the original site is down. She bought a ...[More]


Is there a key for the map icons in Hollow Knight? Is there a key for the map icons in Hollow Knight?

Posted On: December 12, 2023
I bought lots of markers for my map from the nice bug lady in Dirtmouth but I can't actually remember what most of them are for and there doesn't seem to be a key or legend that I can see on t...[More]


I ABSOLUTELY LOVE MY USERNAME!!! I ABSOLUTELY LOVE MY USERNAME!!!

Posted On: November 17, 2024
Love it.Question from user Relative_Pin8485 at BaldursGate3 at reddit.com.Answer:was the typo intentional lol ?Answer from user JamalSteve at BaldursGate3 at reddit.com....[More]


Is the missable chest in the Mushroom Castle still in the remake? Is the missable chest in the Mushroom Castle still in the remake?

Posted On: November 26, 2023
In the original Super Mario RPG on SNES, there is a missable hidden treasure chest that could only be obtained by jumping on a Toad's head the first time you visit Mushroom Castle. Once you enter ...[More]


What is the difference between Minecraft java edition and bedrock edition? What is the difference between Minecraft java edition and bedrock edition?

Posted On: March 14, 2024
I have just recently started playing Minecraft again after a 4 or 5 year hiatus (java edition ~v1.8 apparently), so I have a couple questions:.What's the difference between Minecraft Java Edition and ...[More]