03-03-2005, 09:08 PM
Tal,Mar 3 2005, 01:55 PM Wrote:I believe you can do that through the /assist command and a macro.
Macro Information
[right][snapback]69667[/snapback][/right]
I think it is more complicated than this. I do not believe there is an API function for "what is targeting something".
This is the list of targeting functions:
ClearTarget() - Clears the selected target.
TargetByName("name") - Selects the specified player as the current target.
TargetLastEnemy() - Selects the last targetted enemy as the current target.
TargetNearestEnemy({reverse}) - Selects the nearest enemy as the current target.
TargetNearestFriend() - Selects the nearest member of your party.
TargetUnit("unit") - Selects the specified id as the current target.
TargetUnitsPet("unit") - Selects the specified unit's pet as the current target.
Can you even call assist on an unfriendly target? If so, it might be possible to write
a mod (too long for a macro I believe) that did:
Code:
Target friendly (i.e. the priest), store that unit in a variable
Cycle through all unfriendly targets (not sure how to do that, hmmmm)
For each unfriendly target do:
"Assist" unfriendly target
If current target == stored target (from 1 above),
target unfriendly target and break