Event question

What event should I register to definitively mark the entrance to arenas? It’s not like I can check this much solo without negatively impacting another player if I’m working on an addon rather than committing to play at that point in time.

Something in FrameXML knows we’re in an arena because it modifies the UI to populate the arena frames.

I’d like to piggyback on that if I can without mucking up someone else’s play.

PLAYER_ENTERING_WORLD

local _, instanceType = IsInInstance();
if ( instanceType == "arena" or instanceType == "pvp") then
	Arena_LoadUI();
end

Thanks, Fizzy. I’m resurrecting my “alter your macros for the situation” addon and had to actually start over because I accidently deleted my old files.

Ouch, that was some major work if I remember correctly.
Still, have fun with it.

I’ve learned a LOT in the past year - different languages - refinements to the ones I know.