View Single Post
11-26-12, 01:00 PM   #7
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
There is no generic partyenemy.

Your options with targeting are restricted to
/targetfriend (will target any friendly unit including npc/pets/totems/banners etc)
/targetfriendplayer (will only target friendly player units)
/targetparty (will target closest party member)
/targetraid (will target closest raid member)

You can probably add qualifiers to any of those to modify their behavior.

There's more flexibility by adding parameters to the /cast command itself.
Example:
/cast [@targettarget,exists,help,nodead,noplayer][@target,exists,help,nodead][@party1,exists,nodead]Einschreiten

This will try to cast Einschreiten on the first matching target evaluating from left to right:
The target's target if it's friendly and alive and is not the player themselves, (ie if you have an enemy targeted but it's targeting a frienly it will intervene the friendly)
or at the target if it's friendly and alive
or at the first party member if it exists.
  Reply With Quote