diff options
| author | ShinDarth <borzifrancesco@gmail.com> | 2014-08-13 22:56:08 +0200 |
|---|---|---|
| committer | ShinDarth <borzifrancesco@gmail.com> | 2014-08-16 16:09:05 +0200 |
| commit | ae97b50af2d4765322aa8ccb0a2399a5e4c26d7d (patch) | |
| tree | 6073395ce1101465bf00260f0c7e383d91d55434 | |
| parent | 9f7075215d0efdb357abf13ed10a10122fe70039 (diff) | |
Core/Battleground: fixed possible mount abuse after leaving BG
| -rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index 86236cd0f2b..3a59ffa8cf9 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -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); |
