#include "angband.h"
#include "monsterrace-hook.h"
+#include "player-status.h"
#define TECHNIC_HISSATSU (REALM_HISSATSU - MIN_TECHNIC)
SPELL_IDX n = 0;
magic_type spell;
- /* not if confused */
- if (p_ptr->confused)
- {
- msg_print(_("混乱していて集中できない!", "You are too confused!"));
- return;
- }
- if (!buki_motteruka(INVEN_RARM) && !buki_motteruka(INVEN_LARM))
+ if (cmd_limit_confused(p_ptr)) return;
+ if (!has_melee_weapon(INVEN_RARM) && !has_melee_weapon(INVEN_LARM))
{
if (flush_failure) flush();
msg_print(_("武器を持たないと必殺技は使えない!", "You need to wield a weapon!"));
return;
}
- if (p_ptr->confused)
- {
- msg_print(_("混乱していて読めない!", "You are too confused!"));
- return;
- }
+ if (cmd_limit_confused(p_ptr)) return;
if (!(p_ptr->new_spells))
{