From e5c1e3eca7681f89058c91830cd7ed5d7ac71b88 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 92fb208e91..783cb6b922 100644 --- a/common/movement.c +++ b/common/movement.c @@ -164,8 +164,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(utype, ACTION_ATTACK) - || utype_can_do_action(utype, ACTION_BOMBARD)) - && utype->attack_strength > 0 + || utype_can_do_action(utype, ACTION_BOMBARD) + || utype_can_do_action(utype, ACTION_NUKE)) && !utype_has_flag(utype, UTYF_ONLY_NATIVE_ATTACK); } -- 2.30.2