GetBattlefieldWinner

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.5.0 / 1.13.2

Returns the winner of the battlefield.

winner = GetBattlefieldWinner()

Parameters

Returns

winner
winner
number - Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde, 1 for Alliance and 255 for a draw in a battleground, 0 for Green Team and 1 for Yellow in an arena.

Details

Gets the winner of the battleground that the player is currently in.