Scripts/Arenas: Also prevent bugs with Spirit of Redemption.
Meh. Three commits for this. My bad. Farewell TrinityCore. :(
This commit is contained in:
@@ -793,14 +793,14 @@ void Battleground::EndBattleground(uint32 winner)
|
|||||||
if (!player)
|
if (!player)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Last standing - Rated 5v5 arena & be solely alive player
|
|
||||||
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
|
// should remove spirit of redemption
|
||||||
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
|
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
|
||||||
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
||||||
|
|
||||||
|
// Last standing - Rated 5v5 arena & be solely alive player
|
||||||
|
if (team == winner && isArena() && isRated() && GetArenaType() == ARENA_TYPE_5v5 && aliveWinners == 1 && player->isAlive())
|
||||||
|
player->CastSpell(player, SPELL_THE_LAST_STANDING, true);
|
||||||
|
|
||||||
if (!player->isAlive())
|
if (!player->isAlive())
|
||||||
{
|
{
|
||||||
player->ResurrectPlayer(1.0f);
|
player->ResurrectPlayer(1.0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user