mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user