WoW:API GetBattlefieldWinner

From AddOn Studio
Revision as of 04:32, 12 July 2006 by WoWWiki>Shadowed (→‎Returns: Returns nil, 0 or 1 not nil, 1, 2)
Jump to navigation Jump to search
GetBattlefieldWinner() -Documentation by Klishu-

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.

Template:WoW API