Scripts/Commands: modify command .dismount to target any selected player (#19788)

- change security lvl for command .dismount to 2 (gamemasters). For players there is /dismount command

Closes #19788
This commit is contained in:
ForesterDev
2017-12-17 07:36:59 +04:00
committed by tkrokli
parent 484c681e43
commit 661dfee80e
3 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
UPDATE `rbac_linked_permissions` SET `id` = 197 WHERE `linkedId` = 501;

View File

@@ -667,7 +667,7 @@ public:
static bool HandleDismountCommand(ChatHandler* handler, char const* /*args*/)
{
Player* player = handler->GetSession()->GetPlayer();
Player* player = handler->getSelectedPlayerOrSelf();
// If player is not mounted, so go out :)
if (!player->IsMounted())
@@ -679,7 +679,7 @@ public:
if (player->IsInFlight())
{
handler->SendSysMessage(LANG_YOU_IN_FLIGHT);
handler->SendSysMessage(LANG_CHAR_IN_FLIGHT);
handler->SetSentErrorMessage(true);
return false;
}