OSDN Git Service

[Refactor] #37353 cmd_limit_blind() 適用.
authordeskull <deskull@users.sourceforge.jp>
Thu, 1 Aug 2019 14:32:25 +0000 (23:32 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Thu, 1 Aug 2019 14:32:25 +0000 (23:32 +0900)
src/cmd-hissatsu.c

index 55ddead..7998dfe 100644 (file)
@@ -385,12 +385,7 @@ void do_cmd_gain_hissatsu(void)
                set_action(p_ptr, ACTION_NONE);
        }
 
-       if (p_ptr->blind || no_lite())
-       {
-               msg_print(_("目が見えない!", "You cannot see!"));
-               return;
-       }
-
+       if (cmd_limit_blind(p_ptr)) return;
        if (cmd_limit_confused(p_ptr)) return;
 
        if (!(p_ptr->new_spells))