Remove player in ArenaTeam

Hi, after change race/faction/nickname player remove in Arena Team.

I found call method ‘DelMember’ and ‘HandleCharFactionOrRaceChange’, But produced no results.

It would be desirable that the player in the team remained.
Thanks, and sorry for my bad english.

+1 me too i have this problem !

Any ideas?

thx @Rescript

 src/server/game/Handlers/CharacterHandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp
index 6d79091..41c8e39 100644
--- a/src/server/game/Handlers/CharacterHandler.cpp
+++ b/src/server/game/Handlers/CharacterHandler.cpp
@@ -1935,7 +1935,7 @@ void WorldSession::HandleCharFactionOrRaceChange(WorldPacket& recvData)
             }
 
             // Leave Arena Teams
-            Player::LeaveAllArenaTeams(guid);
+            // Player::LeaveAllArenaTeams(guid);
 
             // Reset homebind and position
             stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_PLAYER_HOMEBIND);

Thx !

Should check faction for that (and faction interaction in config)

Fixed in https://github.com/TrinityCore/TrinityCore/commit/c1a468365b6a312c5efdf30a63c5cd2b1a2d35ef