aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-06-15 21:35:05 +0200
committerjackpoz <giacomopoz@gmail.com>2015-06-15 21:35:05 +0200
commit0b9cd22a6b5a0cca6e3c07dd5ae077ddbdfc3992 (patch)
tree6e84e37de8bdfbff48cbd9de02f57f9841d912bb /src
parent170ba68e63c46323f8624ecff24e6de1d38bd97b (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_tele.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_tele.cpp b/src/server/scripts/Commands/cs_tele.cpp
index e488aa0e607..8e82f9980d3 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);