From 6ed2e72204e7a8b45ea2c4c4c1b5fca30d773809 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Mon, 31 May 2021 07:06:08 +0200 Subject: [PATCH 03/10] Map non allied unit at tgt tile to ANEK system. Have the action not enabled explanation system detect that a non allied unit at the target tile is blocking an action when unit_move_to_tile_test() returns MR_DESTINATION_OCCUPIED_BY_NON_ALLIED_UNIT. See osdn #42434 --- server/unithand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/unithand.c b/server/unithand.c index efb331b0e1..b1ea78197a 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -1641,6 +1641,9 @@ static struct ane_expl *expl_act_not_enabl(struct unit *punit, case MR_TRIREME: explnat->kind = ANEK_TRIREME_MOVE; break; + case MR_DESTINATION_OCCUPIED_BY_NON_ALLIED_UNIT: + explnat->kind = ANEK_TGT_NON_ALLIED_UNITS_ON_TILE; + break; default: fc_assert(action_custom != MR_OK); explnat->kind = ANEK_UNKNOWN; -- 2.30.2