From a66feafa3fb19f826a787848474fc459465cdce0 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Sun, 27 Jul 2025 21:44:28 +0300 Subject: [PATCH] System actors can have no traits --- OpenRA.Mods.Common/Lint/CheckTraitPrerequisites.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Lint/CheckTraitPrerequisites.cs b/OpenRA.Mods.Common/Lint/CheckTraitPrerequisites.cs index bd8b3b9bf8..67689737ef 100644 --- a/OpenRA.Mods.Common/Lint/CheckTraitPrerequisites.cs +++ b/OpenRA.Mods.Common/Lint/CheckTraitPrerequisites.cs @@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Lint try { var hasTraits = actorInfo.Value.TraitsInConstructOrder().Any(); - if (!hasTraits) + if (!hasTraits && !Enum.TryParse(actorInfo.Key, true, out _)) emitWarning($"Actor `{actorInfo.Key}` has no traits. Is this intended?"); } catch (Exception e)