aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-12 10:01:09 -0500
committermegamage <none@none>2009-05-12 10:01:09 -0500
commit65b10830b84646848221833f93aded68fc78e974 (patch)
treeeaadde04715cf7c51b4b388bf7e25ba6288ba853
parent2024577488134480b1f2c443732f8889fa384449 (diff)
*Fix a bug that arena never ends if the last player is killed with spirit of redemption talent.
--HG-- branch : trunk
-rw-r--r--src/game/BattleGround.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 7a6b96070a1..b76e0c7835c 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -1758,7 +1758,7 @@ uint32 BattleGround::GetAlivePlayersCountByTeam(uint32 Team) const
if (itr->second.Team == Team)
{
Player * pl = objmgr.GetPlayer(itr->first);
- if (pl && pl->isAlive())
+ if (pl && pl->isAlive() && !pl->HasByteFlag(UNIT_FIELD_BYTES_2, 3, FORM_SPIRITOFREDEMPTION))
++count;
}
}