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 is the additional damage from Chosen weaknesses calculated? How is the additional damage from Chosen weaknesses calculated?

Posted On: January 18, 2023
Some of the Chosens' possible weaknesses make them take additional damage from particular damage sources. These are:.Shell-shocked - additional damage from explosives.Brittle - additional damage from ...[More]


Is there any way I can give myself 360° vision in game? Is there any way I can give myself 360° vision in game?

Posted On: July 6, 2023
A key gameplay mechanic in Project Zomboid is that your character can only see what's in front of them, even though the game has an isometric perspective. Anything behind becomes shrouded. That...[More]


This Just Distracts Me in Hogwarts Legacy This Just Distracts Me in Hogwarts Legacy

Posted On: April 22, 2023
Question from user Ravenclaw-Gamer at HogwartsLegacyGaming at reddit.com. Answer: Started playing God of War: Ragnorok after HL and I’m pressing the revelio everywhere and it’s not w...[More]


Getting Rich Off Paintings Getting Rich Off Paintings

Posted On: July 21, 2021
The biggest mistake you can make in the Sims 4 is wasting your character’s life by making him work in some crappy job. Being the average Joe is tedious and would take a considerable amount of ef...[More]


What is the best class to RP as a doctor? What is the best class to RP as a doctor?

Posted On: May 7, 2025
So, I want to try and play as a doctor character but don't know what class would fit them best. Armor wise, I feel like they would only wear clothing and wield a staff. I was thinking cleric could fit...[More]


Efficient use of Construction Robots Efficient use of Construction Robots

Posted On: January 5, 2024
I often find myself constructing things using blueprints because it's so much easier than laying multiple things by hand. I was recently doing this at a remote mine site, that I had connected via ...[More]


My MC’s And Alcohol (Hogwarts Legacy) My MC’s And Alcohol (Hogwarts Legacy)

Posted On: July 27, 2023
All my MC’s in my mind Don’t like people Drinking so whenever I’m in a cave or at a bandit camp I make sure to have them Basic Cast and Destroy all of the Bottles i see. Plus it&r...[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 much grain can a giant node produce with the production per 25 perk? How much grain can a giant node produce with the production per 25 perk?

Posted On: June 13, 2023
The total amount of stuff from a node can be increased by getting perks. Here are two such perks;. Mold supply: Increase the production of grain by +1 (or +2). Grain harvest: Increase the produc...[More]


In the Witcher 3, Will I always get the warning that quests may fail? In the Witcher 3, Will I always get the warning that quests may fail?

Posted On: June 8, 2023
Before traveling to the Isle of Mists you get a warning specifying that some quest may fail if you go past this point. The first time I was about to cross this point I double checked that I had comple...[More]