{
OBJECT_IDX item;
object_type *o_ptr;
- cptr q, s;
+ cptr q, s;
+
+ if (p_ptr->wild_mode)
+ {
+ return;
+ }
+
+ if (p_ptr->inside_arena)
+ {
+ msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
+ msg_print(NULL);
+ return;
+ }
if (p_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
{
OBJECT_IDX item;
cptr q, s;
+ if (p_ptr->wild_mode)
+ {
+ return;
+ }
+
+ if (p_ptr->inside_arena)
+ {
+ msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
+ msg_print(NULL);
+ return;
+ }
+
if (p_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
{
set_action(ACTION_NONE);
OBJECT_IDX item;
cptr q, s;
+ if (p_ptr->wild_mode) return;
+
+ if (p_ptr->inside_arena)
+ {
+ msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
+ msg_print(NULL);
+ return;
+ }
+
/* Restrict choices to wands */
item_tester_tval = TV_WAND;
object_type *j_ptr, *ammo_ptr;
cptr q, s;
+ if(p_ptr->wild_mode) return;
+
is_fired = FALSE; /* not fired yet */
/* Get the "bow" (if any) */
bool come_back = FALSE;
bool do_drop = TRUE;
+ if (p_ptr->wild_mode) return FALSE;
if (p_ptr->special_defense & KATA_MUSOU)
{
/* Fire an item */
case 'f':
{
- if (!p_ptr->wild_mode) do_cmd_fire();
+ do_cmd_fire();
break;
}
/* Throw an item */
case 'v':
{
- if (!p_ptr->wild_mode) do_cmd_throw(1, FALSE, -1);
+ do_cmd_throw(1, FALSE, -1);
break;
}
/* Aim a wand */
case 'a':
{
- if (!p_ptr->wild_mode)
- {
- if (!p_ptr->inside_arena)
- do_cmd_aim_wand();
- else
- {
- msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
- msg_print(NULL);
- }
- }
+ do_cmd_aim_wand();
break;
}
/* Zap a rod */
case 'z':
{
- if (!p_ptr->wild_mode)
- {
- if (p_ptr->inside_arena)
- {
- msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
- msg_print(NULL);
- }
- else if (use_command && rogue_like_commands)
+ if (use_command && rogue_like_commands)
{
do_cmd_use();
}
{
do_cmd_zap_rod();
}
- }
break;
}