mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +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:
@@ -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