OSDN Git Service

[Refactor] #37353 盲目時のコマンド制限処理を cmd_limit_confused() に統合。 / Integrate command limitat...
[hengband/hengband.git] / src / cmd-item.c
index e49439e..3e37475 100644 (file)
@@ -1732,21 +1732,11 @@ void do_cmd_use(void)
                /* Read a scroll */
                case TV_SCROLL:
                {
-                       /* Check some conditions */
-                       if (p_ptr->blind)
-                       {
-                               msg_print(_("目が見えない。", "You can't see anything."));
-                               return;
-                       }
-                       if (no_lite())
-                       {
-                               msg_print(_("明かりがないので、暗くて読めない。", "You have no light to read by."));
-                               return;
-                       }
+                       if (cmd_limit_blind(p_ptr)) return;
                        if (cmd_limit_confused(p_ptr)) return;
 
-                 do_cmd_read_scroll_aux(item, TRUE);
-                 break;
+                       do_cmd_read_scroll_aux(item, TRUE);
+                       break;
                }
 
                /* Fire ammo */