From c8f1ecac6984712945d3ffc261fcb7a6f4fd701b 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 44d1f34c95..808c9518fc 100644 --- a/common/movement.c +++ b/common/movement.c @@ -195,8 +195,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_can_do_action_result(utype, ACTRES_WIPE_UNITS)) - && utype->attack_strength > 0 + || utype_can_do_action_result(utype, ACTRES_WIPE_UNITS) + || utype_can_do_action_result(utype, ACTRES_NUKE_UNITS)) && !utype_has_flag(utype, UTYF_ONLY_NATIVE_ATTACK); } -- 2.30.2