diff options
author | n0n4m3 <none@none> | 2009-12-26 16:45:43 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-26 16:45:43 +0100 |
commit | 37d255d70f4b0e70bc06eb35b2657138102663b1 (patch) | |
tree | af6a924e4ce01529a17a6c319201b0fab57b62aa /src/game/BattleGround.cpp | |
parent | 9c6859332ca9513c179d6eb294f8f570b9268ac7 (diff) |
Removed SPELL_AURA_MOUNTED when BG end and player leave
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r-- | src/game/BattleGround.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 554f8555627..aa7b146ebf5 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -737,7 +737,7 @@ void BattleGround::EndBattleGround(uint32 winner) } // should remove spirit of redemption - if(plr->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION)) + if (plr->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION)) plr->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT); if (!plr->isAlive()) @@ -996,9 +996,12 @@ void BattleGround::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac Player *plr = objmgr.GetPlayer(guid); // should remove spirit of redemption - if(plr && plr->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION)) + if (plr && plr->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION)) plr->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT); + if (plr->HasAuraType(SPELL_AURA_MOUNTED)) + plr->RemoveAurasByType(SPELL_AURA_MOUNTED); + if(plr && !plr->isAlive()) // resurrect on exit { plr->ResurrectPlayer(1.0f); |