WoW API: GetBattlefieldWinner

Get the winner of the battleground

battlefieldWinner = GetBattlefieldWinner()

Parameters

Arguments

None

Returns

battlefieldWinner
battlefieldWinner
Integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)

Details

Gets the winner of the current battleground that the player is inside.
Within the scope of arena winners, the integer returned is the index of the arena team. Read the documentation for GetBattlefieldTeamInfo for more information. Salanex 00:00, 16 February 2007 (EST)

WoW API < GetBattlefieldWinner