aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2021-12-16 19:24:57 +0100
committerShauren <shauren.trinity@gmail.com>2022-03-24 13:19:37 +0100
commita37f9b6693c74176bdbf0730e952ef7f05701cd1 (patch)
tree1c4def33be6c87f339ffc5e263f7f6e4b95a6e17
parent9dabdf7724e0555a5935f0073d0b2db7035b23cf (diff)
Core/Battlegrounds: Avoid teleport players when relogin inside Strand of the Ancients (#27414)
(cherry picked from commit d3b6d9a38cdb90ddaf7d5481f9603388eb7e7e24)
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp3
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 7608957f1a2..c2cb0bad634 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp
@@ -483,7 +483,8 @@ void BattlegroundSA::AddPlayer(Player* player)
SendTransportInit(player);
- TeleportToEntrancePosition(player);
+ if (!isInBattleground)
+ TeleportToEntrancePosition(player);
}
void BattlegroundSA::RemovePlayer(Player* /*player*/, ObjectGuid /*guid*/, uint32 /*team*/) { }