Scripts/Commands: modify command .dismount to target any selected player

Port From (https://github.com/TrinityCore/TrinityCore/commit/7bd3914663735fc0744a97b81140adef8b4d276b)
This commit is contained in:
hondacrx
2021-03-17 17:07:59 -04:00
parent 5878e2be56
commit f667df1b11
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -656,7 +656,7 @@ namespace Game.Chat
[CommandNonGroup("dismount", RBACPermissions.CommandDismount)]
static bool HandleDismountCommand(StringArguments args, CommandHandler handler)
{
Player player = handler.GetSession().GetPlayer();
Player player = handler.GetSelectedPlayerOrSelf();
// If player is not mounted, so go out :)
if (!player.IsMounted())
@@ -667,7 +667,7 @@ namespace Game.Chat
if (player.IsInFlight())
{
handler.SendSysMessage(CypherStrings.YouInFlight);
handler.SendSysMessage(CypherStrings.CharInFlight);
return false;
}