Scripts/Commands: Allow to use .tele in combat only to GMs
Allow to use .tele in combat only to players who can be GMs (even if they have .gm off)
This commit is contained in:
1 parent
3d9ad131ee
commit
936d88c2ca
1 file changed
+1
-1
@@ -301,7 +301,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (me->IsInCombat() && !handler->GetSession()->HasPermission(rbac::RBAC_PERM_COMMAND_TELE_NAME))
|
||||
if (me->IsInCombat() && !me->CanBeGameMaster())
|
||||
{
|
||||
handler->SendSysMessage(LANG_YOU_IN_COMBAT);
|
||||
handler->SetSentErrorMessage(true);
|
||||
|
||||
Reference in new issue
Block a user