WoW API: GetBattlefieldWinner

From AddOn Studio
Revision as of 15:29, 12 July 2006 by WoWWiki>Klishu
Jump to navigation Jump to search

WoW API < GetBattlefieldWinner

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 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.