From bcec58720bdf8f0424cc621ce7737ff745aaf6d5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 16 Oct 2022 07:24:19 +1100 Subject: [PATCH] Hotfix dragon round end text (#11925) --- Content.Server/Dragon/DragonSystem.Rule.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Server/Dragon/DragonSystem.Rule.cs b/Content.Server/Dragon/DragonSystem.Rule.cs index a7a53be21d..f56b87bcd8 100644 --- a/Content.Server/Dragon/DragonSystem.Rule.cs +++ b/Content.Server/Dragon/DragonSystem.Rule.cs @@ -48,6 +48,11 @@ public sealed partial class DragonSystem if (!RuleAdded) return; + var dragons = EntityQuery(true).ToList(); + + if (dragons.Count == 0) + return; + args.AddLine(Loc.GetString("dragon-round-end-summary")); foreach (var dragon in EntityQuery(true))