WoW:API GetBattlefieldWinner

From AddOn Studio
Revision as of 16:55, 5 June 2006 by WoWWiki>Klishu
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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; 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.

Template:WoW API