Scripts/Arenas: Fix some typos in the last commit.

I should stop hitting the Commit button as soon as possible.
This commit is contained in:
Kapoeira
2012-01-12 02:05:11 -05:00
parent b071505216
commit 894edcaafe

View File

@@ -771,6 +771,7 @@ void Battleground::EndBattleground(uint32 winner)
}
}
uint8 aliveWinners = GetAlivePlayersCountByTeam(winner);
for (BattlegroundPlayerMap::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
uint32 team = itr->second.Team;
@@ -793,7 +794,7 @@ void Battleground::EndBattleground(uint32 winner)
continue;
// Last standing - Rated 5v5 arena & be solely alive player
if (team == winner && isArena() && isRated() && GetArenaType() == ARENA_TYPE_5v5 && GetAlivePlayersCountByTeam(winner) == 1 && player->isAlive())
if (team == winner && isArena() && isRated() && GetArenaType() == ARENA_TYPE_5v5 && aliveWinners == 1 && player->isAlive())
player->CastSpell(player, SPELL_THE_LAST_STANDING, true);
// should remove spirit of redemption