Target macro not working?

When I want to target an enemy I use my macro I have on a keybind. It is as follows:

/targetenemy [noharm]
/Cast Lighting Bolt

But when i use it the second time to cast Flame Shock or Lightning Bolt it will then tab over to a new target using my move in the process. How to I make it so it will not target a new mob for a skill and stay on the one target until it’s dead?

1 Like

This is what’s causing you to target new mobs every time. When you hit the macro, the first thing it does is look for an enemy.

try this:

/cleartarget [help][dead]
/targetenemy [noexists]
/cast Lightning Bolt

This will clear your target if it is friendly [help] or dead [dead] target.
Then it will target an enemy, as long as you don’t have an enemy targeted already [noexists].

When you push the button again, with an existing enemy target, the [noexists] check fails and it doesn’t change targets.

Thanks for the help