WoW API: GetBattlefieldWinner

From AddOn Studio
Revision as of 23:46, 19 November 2007 by WoWWiki>Shadowed (Cleaned up a bit, and added info about it being broken in 2.3.0)
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 current battleground that the player is inside.

Notes

Currently in Patch 2.3.0 this is broken and returning nil when nobody has won, and 255 if someone has won regardless of faction or team

WoW API < GetBattlefieldWinner