Core/Commands: Fixed accessing empty optional in .modify faction command

Port From (https://github.com/TrinityCore/TrinityCore/commit/43567f5a5f989eabaa7b9cbcc845471a3972014d)
This commit is contained in:
hondacrx
2024-01-30 09:26:23 -05:00
parent 56eefeb54b
commit 228f2649f0
+1 -1
View File
@@ -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;
}