PVP "Waiting Rooms"

I’m having some trouble reliably detecting when a character has zoned in to an Arena or Battleground waiting area.

Anyone have a proven method for doing this?

Joining a battleground in progress isn’t a problem. The code I’m using for that works just fine.

But zoning into the same map before it starts - that isn’t.

Untested but after zoning and and checking the instance type probably something like:

if C_PvP.GetActiveMatchState() == Enum.PvPMatchState.Inactive then
	-- it's not Active and not Complete so not yet started
end

Thanks, Fizzie. I’ll play with it.

Working on that Macro addon I mentioned. I have an option to load macros based on the area type and arenas and bgs were giving me fits.

I think arenas also give you a “preparation” buff, causing all your spells to cost no mana?

If the method above doesn’t work out, then you could try iterating through UnitAura(“player”, i) to scan for that buff.

Oh. Duh.

Now there’s a nice “out of the box” solution. :slight_smile: