WoW API: GetBattlefieldWinner
← WoW API < GetBattlefieldWinner
Returns an integer value based on the winner of the Battleground.
winnerCode = GetBattlefieldWinner()
Parameters
Arguments
None
Returns
- winnerCode
- winnerCode
- integer - A code indicating if you've won the current battleground. (nil for no; 1 for yes)
Details
- Returns an interger value which can be nil or 1 indicating whether the player has won the current battleground he is in. Returns nil if the player is not in a battleground or the battle still hasn't ended yet.