ActualFantasy629@legacy41522161 (talk | contribs) mNo edit summary |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Get the winner of the battlefield |
Get the winner of the battlefield |
||
− | winner= GetBattlefieldWinner() |
+ | winner = GetBattlefieldWinner() |
== Parameters == |
== Parameters == |
||
Line 11: | Line 11: | ||
==Details== |
==Details== |
||
− | : Gets the winner of the |
+ | : Gets the winner of the battleground that the player is currently in. |
− | ==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. |
||
− | |||
− | ---- |
||
{{wowapi}} |
{{wowapi}} |
Revision as of 14:39, 9 April 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 battleground that the player is currently in.
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |