From d9133adbb7520cc316b59d2071cf30b29d8406fb Mon Sep 17 00:00:00 2001 From: jackpoz Date: Mon, 15 Jun 2015 21:35:05 +0200 Subject: Core/ChatCommands: Allow to use "tele" command inside of a battleground Allow GameMasters with ".gm on" tag to use ".tele" command inside of a battleground to tele around. (cherry picked from commit 0b9cd22a6b5a0cca6e3c07dd5ae077ddbdfc3992) --- src/server/scripts/Commands/cs_tele.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/scripts/Commands/cs_tele.cpp b/src/server/scripts/Commands/cs_tele.cpp index 55562a004ac..09930770f63 100644 --- a/src/server/scripts/Commands/cs_tele.cpp +++ b/src/server/scripts/Commands/cs_tele.cpp @@ -319,7 +319,7 @@ public: } MapEntry const* map = sMapStore.LookupEntry(tele->mapId); - if (!map || map->IsBattlegroundOrArena()) + if (!map || (map->IsBattlegroundOrArena() && (me->GetMapId() != tele->mapId || !me->IsGameMaster()))) { handler->SendSysMessage(LANG_CANNOT_TELE_TO_BG); handler->SetSentErrorMessage(true); -- cgit v1.2.3