*Fix a bug that arena never ends if the last player is killed with spirit of redemption talent.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-12 10:01:09 -05:00
parent 2024577488
commit 65b10830b8
+1 -1
View File
@@ -1758,7 +1758,7 @@ uint32 BattleGround::GetAlivePlayersCountByTeam(uint32 Team) const
if (itr->second.Team == Team) if (itr->second.Team == Team)
{ {
Player * pl = objmgr.GetPlayer(itr->first); Player * pl = objmgr.GetPlayer(itr->first);
if (pl && pl->isAlive()) if (pl && pl->isAlive() && !pl->HasByteFlag(UNIT_FIELD_BYTES_2, 3, FORM_SPIRITOFREDEMPTION))
++count; ++count;
} }
} }