Revert "Scripts/Commands: Allow to use .tele in combat only to GMs"

This reverts commit 3ae5b72075925f896c53603c26b2aa0dd7708fbf - see discussion on commit.
This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 16:58:32 +02:00
1 parent 936d88c2ca
commit aa9f8ef96b
1 file changed
+1 -1
+1 -1
View File
@@ -301,7 +301,7 @@ public:
return false;
}
if (me->IsInCombat() && !me->CanBeGameMaster())
if (me->IsInCombat() && !handler->GetSession()->HasPermission(rbac::RBAC_PERM_COMMAND_TELE_NAME))
{
handler->SendSysMessage(LANG_YOU_IN_COMBAT);
handler->SetSentErrorMessage(true);