mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user