From 228f2649f0063faa823b26dd3e7e786bdf7364ea Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 30 Jan 2024 09:26:23 -0500 Subject: [PATCH] Core/Commands: Fixed accessing empty optional in .modify faction command Port From (https://github.com/TrinityCore/TrinityCore/commit/43567f5a5f989eabaa7b9cbcc845471a3972014d) --- Source/Game/Chat/Commands/ModifyCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Chat/Commands/ModifyCommands.cs b/Source/Game/Chat/Commands/ModifyCommands.cs index d22a94a4a..8dd4bb037 100644 --- a/Source/Game/Chat/Commands/ModifyCommands.cs +++ b/Source/Game/Chat/Commands/ModifyCommands.cs @@ -114,7 +114,7 @@ namespace Game.Chat if (!factionid.HasValue) { - handler.SendSysMessage(CypherStrings.CurrentFaction, target.GetGUID().ToString(), factionid.Value, flag.Value, npcflag.Value, dyflag.Value); + handler.SendSysMessage(CypherStrings.CurrentFaction, target.GetGUID().ToString(), target.GetFaction(), flag.Value, npcflag.Value, dyflag.Value); return true; }