mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
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:
File diff suppressed because one or more lines are too long
1
sql/updates/auth/3.3.5/2017_12_17_00_auth.sql
Normal file
1
sql/updates/auth/3.3.5/2017_12_17_00_auth.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `rbac_linked_permissions` SET `id` = 197 WHERE `linkedId` = 501;
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user