So I’m struggling to figure out how to properly macro the warlock ability “Enslave Demon” that will target any Enemy demon that has the same name as another warlock who may have a demon already, of the same name.
More specifically, during the M’uru fight in Sunwell, warlocks typically all enslave “Void Spawns” as quickly as possible.
I’ve made the basic macro of
/target Void Spawn
/cast Enslave Demon
But occasionally, the macro will snap to a friendly demon and try to enslave that. For this fight, there’s limited room for error and limited room to fool around otherwise. Ideally, I’m trying to automate this process as much as possible; is there any way I can have a macro separate friendly vs enemy targets that have the same name?
Only thing i can think is to add /cleartarget [noharm]
between them but that wont prevent the macro from repeatedly targeting one that’s already enslaved.
This won’t work?
/target [harm,nodead]Void Spawn
/cast Enslave Demon
As far as I’m aware, I don’t think so. I used [nohelp] and it didn’t seem to work then either, still targeted friendly ones. I think nohelp and harm are essentially the same, correct?
Not exactly.
Harm/noharm has to do with attackable.
Help/nohelp has to do with healable.
You might try it.
No. That tests against your current target, not the unit you’re trying to target.
Oh. Yeah. Too much blood in my caffeine stream when I wrote that.
Doesn’t sound like there’s a good macro line to parse between hostile and friendly targets then :-\
Added your suggestion though, Elvenbane, thx!
Not quite.
[noharm]
means “I don’t have an enemy targeted”. It will return true
if you have a friendly target, or no target.
[help]
means “I have a friendly targeted”. It will only return true if you have a friendly target.
Shot in the dark, have you tried this?
/stopmacro [harm]
/targetenemy Void Spawn
/targetenemy
might or might not accept arguments like this, but it’s worth a shot. If that doesn’t work, try this:
/stopmacro [harm]
/tar Void Spawn
/cleartarget [help]
Should be able to spam that and get an enemy fairly quick.
I’ll definitely try this! Thanks!
Can I leave in the /cast Enslave Demon portion of the macro still or does that need to be a separate binding all together?
You can tack that on to the end and it will cast fine.
/targetenemy
doesn’t accept arguments.