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]

How to join Minecraft servers? How to join Minecraft servers?

Posted On: August 24, 2023
My son wants to join a server on Minecraft (Wii U Edition), but we don't know how. How can he join a server? Question from user Tomás at stackexchange. Answer: You can only join...[More]


Is there a way to tell how much extra heal and shield power you have? Is there a way to tell how much extra heal and shield power you have?

Posted On: September 30, 2023
I am playing Soraka in League of Legends and her main role is to heal her allies, so shes buys items to help. Some of the best items for Soraka are items that give more healing power for example the i...[More]


Does Beaver Woodie get poison damage in Hamlets Gas Rainforest? Does Beaver Woodie get poison damage in Hamlets Gas Rainforest?

Posted On: February 7, 2023
As per the title:. I wonder if Woodie in beaver form takes damage from Hamlet's Gas Rainforest biome? So does it progressively lower the beaver meter? And does the rate of damage change? ...[More]


Gear Slot Trauma in Hogwarts Legacy Gear Slot Trauma in Hogwarts Legacy

Posted On: April 11, 2023
I've been playing the story mode, and it seems that my Gear Slot is filled, as a result of which I am unable to open any chests or acquire anything. Can you please advise me what to do? It's r...[More]


Is there any way to hide your Steam status from others? Is there any way to hide your Steam status from others?

Posted On: April 21, 2023
Is there any way to prevent others from seeing your Steam status without removing them as a friend? . Let's say I want to play Borderlands 2 without letting some friends know. Is there any way ...[More]


How much stardust do I need to trade my Charcadet in Pokemon Go? How much stardust do I need to trade my Charcadet in Pokemon Go?

Posted On: March 9, 2024
This is my Charcadet. I tried to trade it with my other account but it said I don't have enough stardust.Question from user Kaito at gaming.stackexchange.com.Answer:It depends on if the other account ...[More]


How can I show the map layer ui? How can I show the map layer ui?

Posted On: October 20, 2023
With the release of version 4.0 layered maps are now in the game, allowing you to swap between surface level and lower levels. When you select something 'underground' the layers map ui is s...[More]


Star Trek Online 2023 Event Campaign Progress Star Trek Online 2023 Event Campaign Progress

Posted On: March 7, 2023
The 2023 Event Campaign is now ongoing. There are a total of 5 events happening over the year, each requiring 14 days of progress. If for some reason, I was unable to get the 14 progress points necess...[More]


Is it just me or is there something wrong with Professor Garlick? Is it just me or is there something wrong with Professor Garlick?

Posted On: September 5, 2023
Is it just me or is there something wrong with Professor Garlick? Was it really just accidents her former herbalism teacher suffered, or did Garlick have something to do with it? I mean, she fel...[More]


What are the conditions for a Force Bonus skipping a mission requirement? What are the conditions for a Force Bonus skipping a mission requirement?

Posted On: April 17, 2024
Sometimes when completing a quest, I'll get credit for completing an optional mission requirement even if I didn't meet said requirement with the message "Force Bonus". For example, in the video below...[More]