From 21da8354f82dc1bdf112a51e5152bea6bd4712c6 Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Wed, 15 May 2024 18:06:20 +0200 Subject: [PATCH 4/5] Pass target unit to Heal_Unit_Pct effects as other_context See RM #621 Signed-off-by: Alina Lenk --- server/unithand.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/unithand.c b/server/unithand.c index 694be8cad6..a53dbd395a 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -778,6 +778,10 @@ static bool do_heal_unit(struct player *act_player, }, &(const struct req_context) { .player = unit_owner(tgt_unit), + .city = tile_city(unit_tile(tgt_unit)), + .tile = unit_tile(tgt_unit), + .unit = tgt_unit, + .unittype = unit_type_get(tgt_unit), }, EFT_HEAL_UNIT_PCT ) + 100) -- 2.34.1