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; 0 for Horde; 1 for Alliance)
Details
- Returns an interger value which can be nil, 0 or 1 indicating the winner of the current battleground the player is in. If the battleground isn't finished or they aren't inside one nil is returned.