What's wrong with my macro?

What's wrong with my macro?

by Tanktest » Sun Dec 06, 2015 3:58 am

Code: Select all
/run isUsable, notEnoughMana = isUsableAction(6); if (isUsable) then CastSpellByName("Revenge") else CastSpellByName("Sunder Armor"); end


It sunders armor correctly but it never casts Revenge, even if its available to use :|
Tanktest
Tester
 

Re: What's wrong with my macro?

by cyklon » Sun Dec 06, 2015 7:39 pm

Doesnt this work?
/cast Revenge
/cast Sunder Armor

Revenge will have prio and will cast be4 sunder as it is cheaper in rage...
User avatar
cyklon
Senior Sergeant
Senior Sergeant
 

Re: What's wrong with my macro?

by LYQ » Mon Dec 07, 2015 8:07 am

Tanktest wrote:
Code: Select all
/run isUsable, notEnoughMana = isUsableAction(6); if (isUsable) then CastSpellByName("Revenge") else CastSpellByName("Sunder Armor"); end


It sunders armor correctly but it never casts Revenge, even if its available to use :|


I guess the first parameter "isUsable" means another another thing than you expect it to, since the logic is fine.
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 


Return to Addons & macros