WoW:API GetBattlefieldWinner
Jump to navigation
Jump to search
Returns an integer value based on the winner of the Battleground.
winnerCode = GetBattlefieldWinner()
Parameters
Arguments
None
Returns
- winnerCode
- winnerCode
- integer - A code indicating the battleground winner. (nil for no one; 1 for Alliance; 2 for Horde)
Details
- Returns an integer value which can be either nil, 1 or 2 indicating the winner of the current battleground the player is in. If the player isn't in a battleground or it's still not finished nil is returned.