What's wrong with my macro?

Posted:
Sun Dec 06, 2015 3:58 am
by Tanktest
- 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

Re: What's wrong with my macro?

Posted:
Sun Dec 06, 2015 7:39 pm
by cyklon
Doesnt this work?
/cast Revenge
/cast Sunder Armor
Revenge will have prio and will cast be4 sunder as it is cheaper in rage...
Re: What's wrong with my macro?

Posted:
Mon Dec 07, 2015 8:07 am
by LYQ
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.