From 65b10830b84646848221833f93aded68fc78e974 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 12 May 2009 10:01:09 -0500 Subject: [PATCH] *Fix a bug that arena never ends if the last player is killed with spirit of redemption talent. --HG-- branch : trunk --- src/game/BattleGround.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 7a6b96070a..b76e0c7835 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; } }