+/*!
+ * @brief 魔法系コマンドを実行できるかの判定を返す
+ * @return 魔法系コマンドを使用可能ならTRUE、不可能ならば理由をメッセージ表示してFALSEを返す。
+ */
+static bool can_do_cmd_cast(void)
+{
+ if (dun_level && (d_info[dungeon_type].flags1 & DF1_NO_MAGIC))
+ {
+ msg_print(_("ダンジョンが魔法を吸収した!", "The dungeon absorbs all attempted magic!"));
+ msg_print(NULL);
+ return FALSE;
+ }
+ else if (p_ptr->anti_magic)
+ {
+ msg_print(_("反魔法バリアが魔法を邪魔した!", "An anti-magic shell disrupts your magic!"));
+ return FALSE;
+ }
+ else if (p_ptr->shero)
+ {
+ msg_format(_("狂戦士化していて頭が回らない!", "You cannot think directly!"));
+ return FALSE;
+ }
+ else
+ return TRUE;
+}