mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Battlefield): shapeshift aura removal from players on leaving arena or battleground (#20069)
no longer remove shapeshift auras from player on leave
This commit is contained in:
@@ -1006,6 +1006,10 @@ void Battleground::RemovePlayerAtLeave(Player* player)
|
|||||||
// BG subclass specific code
|
// BG subclass specific code
|
||||||
RemovePlayer(player);
|
RemovePlayer(player);
|
||||||
|
|
||||||
|
// should remove spirit of redemption
|
||||||
|
if (player->HasAuraType(SPELL_AURA_SPIRIT_OF_REDEMPTION))
|
||||||
|
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
||||||
|
|
||||||
// if the player was a match participant
|
// if the player was a match participant
|
||||||
if (participant)
|
if (participant)
|
||||||
{
|
{
|
||||||
@@ -1049,9 +1053,6 @@ void Battleground::RemovePlayerAtLeave(Player* player)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove shapeshift auras
|
|
||||||
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);
|
|
||||||
|
|
||||||
player->SetBattlegroundId(0, BATTLEGROUND_TYPE_NONE, PLAYER_MAX_BATTLEGROUND_QUEUES, false, false, TEAM_NEUTRAL);
|
player->SetBattlegroundId(0, BATTLEGROUND_TYPE_NONE, PLAYER_MAX_BATTLEGROUND_QUEUES, false, false, TEAM_NEUTRAL);
|
||||||
|
|
||||||
// Xinef: remove all criterias on bg leave
|
// Xinef: remove all criterias on bg leave
|
||||||
|
|||||||
Reference in New Issue
Block a user