From 53f384e5ec4704239cbe8da5769840de8d754717 Mon Sep 17 00:00:00 2001
From: Ihnatus <ignatus31oct@mail.ru>
Date: Sun, 29 Jun 2025 22:48:38 +0300
Subject: [PATCH] Don't document non-unit-performed actions in unit entries

It's yet to decide where to document them.

See FCRM#1547

Signed-off-by: Ihnatus <ignatus31oct@mail.ru>
---
 client/helpdata.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/helpdata.c b/client/helpdata.c
index d21739ffd4..46a0e84ca5 100644
--- a/client/helpdata.c
+++ b/client/helpdata.c
@@ -2584,6 +2584,10 @@ char *helptext_unit(char *buf, size_t bufsz, struct player *pplayer,
   action_iterate(act) {
     struct action *paction = action_by_number(act);
 
+    if (AAK_UNIT != action_get_actor_kind(action_by_number(act))) {
+      /* Does not belong here */
+      continue;
+    }
     if (action_by_number(act)->quiet) {
       /* The ruleset documents this action it self. */
       continue;
-- 
2.45.2

