diff options
author | Gildor <gildor55@gmail.com> | 2021-12-16 19:24:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 19:24:57 +0100 |
commit | d3b6d9a38cdb90ddaf7d5481f9603388eb7e7e24 (patch) | |
tree | 9fb212c616b0f36ca0f598eb43376852a93c98e0 | |
parent | 7ae525d5e5f068ab09166f6f4a2045a72726cb8e (diff) |
Core/Battlegrounds: Avoid teleport players when relogin inside Strand of the Ancients (#27414)
-rw-r--r-- | src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp index 3c52c39dba1..4484824002b 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp @@ -489,7 +489,8 @@ void BattlegroundSA::AddPlayer(Player* player) SendTransportInit(player); - TeleportToEntrancePosition(player); + if (!isInBattleground) + TeleportToEntrancePosition(player); } void BattlegroundSA::RemovePlayer(Player* /*player*/, ObjectGuid /*guid*/, uint32 /*team*/) { } |