1) Can anyone share a macro to target whatever enemy is marked with the Skull (or cross or green triangle, etc..) ?
2) I know if we make tank leader in a party of 5, a workaround macro would be as simple as: /assist party1
3) I got the macro but only works in a raid group:
/script n = 8; for i = 1, 40 do if (UnitExists("raid"..i)) then if (GetRaidTargetIndex("raid"..i.."target") == n ) then TargetUnit("raid"..i.."target"); end end end
But doesnt work in a party group.. 'cause of the API GetRaidTargetIndex() that seems to work only in Raid mode..
Can some enlighted soul suggest the party macro?
Thanks,
Zen
The issue is that blizzard creates the ability to make macros based on ingame code. While a Raid icon, or target icon is technicaly in-game coded, its not as easy to just /target {skull} or w/e. Same reason why you cant make bot macros. Macros dont have the ability to target randomly, youd need set peramiters (such as the addon code you showed) On average - Raids have up to 40 ppl : and parties 5 : F2-5 = party members, so basicaly the easiest way to work around a target-of-target error is to customize it each time, as /target {players name} to make sure you find the target of your tank or dps or healer ect.
It appears that this functionality is limited by the API. I'm impressed that you found a way to do it in a raid.