Merge pull request #12847 from ShinDarth/tc_fix_mount_abuse_after_bg

Core/Battleground: fixed possible mount abuse after leaving BG
This commit is contained in:
jackpoz
2014-08-16 18:17:46 +02:00

View File

@@ -844,12 +844,14 @@ void Battleground::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac
Player* player = ObjectAccessor::FindPlayer(guid);
// should remove spirit of redemption
if (player)
{
// should remove spirit of redemption
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
player->RemoveAurasByType(SPELL_AURA_MOUNTED);
if (!player->IsAlive()) // resurrect on exit
{
player->ResurrectPlayer(1.0f);