Hello, i don't know where to post this so I'll try here and then mod can move it if needed. I need help with a macro / report a bug on the server. I wanna run this script in a macro
"/run if(SpellStopCasting()) then CastSpellByName("Heal") else CastSpellByName("Heal") end"
What this script should do is
1. if I'm not casting anything then it should cast a spell called "Heal".
2. If I'm casting something then it should cancel that cast and cast a spell called heal.
Desired results: When i press the script i want it to cast heal / cancel the current cast and recast the heal spell If i am casting when i press it.
Result i get: First time i press the script while I am casting the spell it cancells it, the second time i press it the castbar dissappears but the spell copntinues casting.
This is really awkward to explain but if you copy the script and try it yourself you will see. ¨Just paste the script into a macro and press it twice (wait for GCD to finish before pressing it again so you can ectually see the results).