Returns the winner of the current battleground or arena match
See also Battlefield functions.
Signature:
winner
=
GetBattlefieldWinner()
Returns:
winner
- Index of the winning team if in a completed match; otherwise nil (number
)0
- Horde (Battleground) / Green Team (Arena)1
- Alliance (Battleground) / Gold Team (Arena)255
- Draw (Arena)