GetBattlefieldWinner
functionguessedavailable in: camelot
Returns the winner of the current battlefield.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Returns
winner · number? · Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde, 1 for Alliance and 255 for a draw in a battleground, 0 for Green Team and 1 for Yellow in an arena.
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.