From 6cbb755cf8c18d828202977931f4023b0e10207b Mon Sep 17 00:00:00 2001 From: deskull Date: Sun, 13 Sep 2020 10:51:56 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#40662=20INVULN=5FARROW=20=E3=81=AE?= =?utf8?q?=E5=88=A4=E5=AE=9A=E3=81=A8=E8=A8=98=E8=BF=B0=E3=82=92=E4=BF=AE?= =?utf8?q?=E6=AD=A3=EF=BC=8E=20/=20Fix=20INVLUN=5FARROW=20description=20an?= =?utf8?q?d=20judgment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/perception/identification.c | 2 +- src/player/player-status-flags.c | 2 ++ src/player/player-status-flags.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/perception/identification.c b/src/perception/identification.c index 03aad4e7a..c1b8a78a6 100644 --- a/src/perception/identification.c +++ b/src/perception/identification.c @@ -83,7 +83,7 @@ bool screen_object(player_type *player_ptr, object_type *o_ptr, BIT_FLAGS mode) } if (has_flag(flgs, TR_INVULN_ARROW)) { - info[i++] = _("それは物理的な飛び道具の一切をはねのける。", "It repels all physical missiles."); + info[i++] = _("それは視界がある限り物理的な飛び道具の一切をはねのける。", "It repels all physical missiles as long as there is visibility."); } if (has_flag(flgs, TR_NO_AC)) { diff --git a/src/player/player-status-flags.c b/src/player/player-status-flags.c index 056d22231..faf60ccc4 100644 --- a/src/player/player-status-flags.c +++ b/src/player/player-status-flags.c @@ -239,6 +239,8 @@ BIT_FLAGS has_no_ac(player_type *creature_ptr) BIT_FLAGS has_invuln_arrow(player_type *creature_ptr) { BIT_FLAGS result = 0L; + if (creature_ptr->blind) + return result; result |= check_equipment_flags(creature_ptr, TR_INVULN_ARROW); return result; } diff --git a/src/player/player-status-flags.h b/src/player/player-status-flags.h index ab7d90d0d..1ba3dc261 100644 --- a/src/player/player-status-flags.h +++ b/src/player/player-status-flags.h @@ -43,7 +43,7 @@ BIT_FLAGS has_easy2_weapon(player_type *creature_ptr); BIT_FLAGS has_down_saving(player_type *creature_ptr); BIT_FLAGS has_no_ac(player_type *creature_ptr); BIT_FLAGS has_invuln_arrow(player_type *creature_ptr); - void has_no_flowed(player_type *creature_ptr); +void has_no_flowed(player_type *creature_ptr); BIT_FLAGS has_mighty_throw(player_type *creature_ptr); BIT_FLAGS has_dec_mana(player_type *creature_ptr); BIT_FLAGS has_reflect(player_type *creature_ptr); -- 2.11.0