Scripts/Arenas: Fix achievement [The Last Standing].

Closes #3637.
This commit is contained in:
Kapoeira
2012-01-12 01:57:46 -05:00
parent 233d891952
commit b071505216
2 changed files with 6 additions and 1 deletions
@@ -792,6 +792,10 @@ void Battleground::EndBattleground(uint32 winner)
if (!player)
continue;
// Last standing - Rated 5v5 arena & be solely alive player
if (team == winner && isArena() && isRated() && GetArenaType() == ARENA_TYPE_5v5 && GetAlivePlayersCountByTeam(winner) == 1 && player->isAlive())
player->CastSpell(player, SPELL_THE_LAST_STANDING, true);
// should remove spirit of redemption
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);