return FALSE;
}
+bool cmd_limit_image(player_type *creature_ptr)
+{
+ if (creature_ptr->image)
+ {
+ msg_print(_("幻覚が見えて集中できない!", "You are too hallucinated!"));
+ return TRUE;
+ }
+ return FALSE;
+}
+
bool cmd_limit_arena(player_type *creature_ptr)
{
if (creature_ptr->inside_arena)
extern bool cmd_limit_time_walk(player_type *creature_ptr);
extern bool cmd_limit_blind(player_type *creature_ptr);
extern bool cmd_limit_confused(player_type *creature_ptr);
+extern bool cmd_limit_image(player_type *creature_ptr);
extern void forget_travel_flow(void);
extern void do_cmd_go_up(void);
extern void do_cmd_go_down(void);
COMMAND_CODE n = 0;
bool cast;
- if (cmd_limit_confused(p_ptr)) return;
-
- /* not if hullucinated */
- if (p_ptr->image)
- {
- msg_print(_("幻覚が見えて集中できない!", "You are too hallucinated!"));
- return;
- }
+ if(cmd_limit_confused(p_ptr)) return;
+ if(cmd_limit_image(p_ptr)) return;
/* not if stuned */
if (p_ptr->stun)