Core/Commands: Added missing hyperlink system.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f60e76b7f157af6a24fa3c962b59f3391b21e75) Port From (https://github.com/TrinityCore/TrinityCore/commit/f647ff68659ed6d8d414d20520507dd451c2cb8d)
This commit is contained in:
@@ -141,7 +141,7 @@ namespace Game.Chat
|
||||
}
|
||||
|
||||
[Command("unbind", RBACPermissions.CommandInstanceUnbind)]
|
||||
static bool HandleInstanceUnbindCommand(CommandHandler handler, [VariantArg<uint, string>] object mapArg, uint? difficultyArg)
|
||||
static bool HandleInstanceUnbindCommand(CommandHandler handler, VariantArg<uint, string> mapArg, OptionalArg<uint> difficultyArg)
|
||||
{
|
||||
Player player = handler.GetSelectedPlayer();
|
||||
if (player == null)
|
||||
@@ -150,11 +150,11 @@ namespace Game.Chat
|
||||
uint? mapId = null;
|
||||
Difficulty? difficulty = null;
|
||||
|
||||
if (mapArg is uint)
|
||||
mapId = (uint)mapArg;
|
||||
if (mapArg.Is<uint>())
|
||||
mapId = mapArg;
|
||||
|
||||
if (difficultyArg.HasValue && CliDB.DifficultyStorage.ContainsKey(difficultyArg.Value))
|
||||
difficulty = (Difficulty)difficultyArg;
|
||||
difficulty = (Difficulty)difficultyArg.Value;
|
||||
|
||||
List<InstanceLock> locksReset = new();
|
||||
List<InstanceLock> locksNotReset = new();
|
||||
|
||||
Reference in New Issue
Block a user