Can a macro detect 'pet type'? (clarified)

#0 - April 17, 2007, 1:07 a.m.
Blizzard Post
Okay, let me explain what I'm looking to do. I have no idea if it is possible or not.

I would like a macro that will do two things:

1. Determine if a pet is one of two things:
-Hunter pet (Beast)
-Warlock pet (Demon/Minion).

2. Cast an appropriate spell on it:
-Curse of Weakness if it is a Hunter pet.
-Banish if it is a Warlock pet.

Is this possible for a macro? Or should I just make a macro with no modifier for Banish and a shift modifier for CoW or something like that? Any help will be appreciated.









#10 - April 17, 2007, 5 p.m.
Blizzard Post
You can't determine anything about your target, but you can check your own pet:
/cast [pet:succubus] Seduce; [pet:voidwalker] Taunt
#12 - April 17, 2007, 5:03 p.m.
Blizzard Post
Er, yeah. teach me to post without having the code handy. :)