WoW API: GetBattlefieldWinner

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetBattlefieldWinner to API GetBattlefieldWinner without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get the winner of the battlefield

winner = GetBattlefieldWinner()

Parameters

Returns

winner
winner
Integer - Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde and 1 for Alliance 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.

WoW API < GetBattlefieldWinner