From c1d37cb46363ff5c649314755b16b374008fd015 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Thu, 15 Apr 2021 15:15:01 +0200 Subject: [PATCH] Allow nuking non native with no attack_strength. See osdn #42008 --- common/movement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/movement.c b/common/movement.c index 1f5abb7054..06dab8d31f 100644 --- a/common/movement.c +++ b/common/movement.c @@ -194,8 +194,8 @@ bool can_attack_non_native(const struct unit_type *utype) { return uclass_has_flag(utype_class(utype), UCF_ATTACK_NON_NATIVE) && (utype_can_do_action_result(utype, ACTRES_ATTACK) - || utype_can_do_action_result(utype, ACTRES_BOMBARD)) - && utype->attack_strength > 0 + || utype_can_do_action_result(utype, ACTRES_BOMBARD) + || utype_can_do_action_result(utype, ACTRES_NUKE_UNITS)) && !utype_has_flag(utype, UTYF_ONLY_NATIVE_ATTACK); } -- 2.30.2