WoW:API GetBattlefieldWinner: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(→‎Notes: Cleaned up the note a little)
Line 15: Line 15:
==Notes==
==Notes==


: Currently in Patch 2.3.2 this is half broken. In Arena's it works. 0 = Green Team, 1 = Gold Team. In Battlegrounds however, it just returns 255 regardless of any winner.
: As of Patch 2.3.2 this is broken inside Battlegrounds and returns 255 if the game has been won instead of 0 or 1, it still works in Arena's however and will return 0 for Green Team and 1 for Gold Team
 
----
----
{{wowapi}}
{{wowapi}}

Revision as of 00:40, 26 February 2008

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

As of Patch 2.3.2 this is broken inside Battlegrounds and returns 255 if the game has been won instead of 0 or 1, it still works in Arena's however and will return 0 for Green Team and 1 for Gold Team

WoW API < GetBattlefieldWinner