Need help with a target enemy macro for Mind Flay please!

==SOLVED==
Hello,
Please.
I need help with a simple target macro for Mind Flay.
What I have atm is not working. Most of the time it will not target the enemy. Once in a while, it will target a little bitty add.

#showtooltip Mind Flay
/targetenemy [noharm, nodead]
/cast Mind Flay

I have other spells with this exact same format, and they work every time. I’m wondering if it is because this is a channeled spell that it does not work?

Thank you for any/all help in advance!

Edit: Never mind. I fixed it. I do not know what was wrong with it. I deleted it and started over and now it works like it should. Thanks anyway!

Should be

#showtooltip
/targetenemy [noharm] [dead]
/cast Mind Flay
1 Like