Core/Chat Commands: Allow to add overlapping teles .
Allow to add overlapping teles like "abc" even if "abcde" already exists. This wasn't possible and a "Teleport already exists" error was thrown instead.
This commit is contained in:
1 parent
a14bbf773e
commit
daf5a4b5c3
3 files changed
+21
-1
No files matched your search
@@ -65,7 +65,7 @@ public:
|
||||
|
||||
std::string name = args;
|
||||
|
||||
if (sObjectMgr->GetGameTele(name))
|
||||
if (sObjectMgr->GetGameTeleExactName(name))
|
||||
{
|
||||
handler->SendSysMessage(LANG_COMMAND_TP_ALREADYEXIST);
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in new issue
Block a user