As Xzin suggests you need to be able to recover from this by swapping main to another character. If your using focus the basis of following versus a hard coded macro system this becomes doable. Lets call this 'switch to auxiliary'.Originally Posted by tequilale
Just a note, if you have a physical 1:1 monitor setup. You can could also key a raritan-like kvm to switch your main out for the auxiliary on your main's old monitor and controllers. Obviously at some level the same keystrokes as the above focus changing macro should be shared.
Unfortunately focus changing is protected command. Before 2.0 I used to do everything based on 'leader' of the party and I could easily move the leader around and when the leader changes in the party the "PARTY_LEADER_CHANGED" event fires. This was also the clue for all characters to re-autofollow again.
You could move to something akin to this, especially if you have a obvious candidate for being main and aux. And once those two are gone your planning on retreating.
The FollowUnit() command is keyed on UnitIds (target, focus, party1, part2, etc) so something akin to FollowUnit(GetLeaderUnit()) would be of some use. This also only really makes sense if all characters in the group can request leader switches with a '/party promoteme' or a private channel.
[code:1]
-- for party not raid
function GetLeaderUnit()
numParty = GetNumPartyMembers()
if (numParty > 0) then
for i=1, numParty do
if (UnitIsPartyLeader("party"..i)) then
return("party"..i);
end
end
end
return nil;
end[/code:1]
Connect With Us