OSDN Git Service

[fix] 窒息攻撃の発動のバグを修正
authorHabu <habu@users.sourceforge.jp>
Sun, 19 Apr 2020 14:56:52 +0000 (23:56 +0900)
committerHabu <habu@users.sourceforge.jp>
Sun, 19 Apr 2020 14:56:52 +0000 (23:56 +0900)
ランダムアーティファクトの窒息攻撃を発動して効果が無かった時、意図しないswitch-case文のfall throughにより衰弱の矢の効果が発動するバグを修正。

src/cmd/cmd-activate.c

index e319c59..f77bf76 100644 (file)
@@ -850,8 +850,8 @@ bool activate_artifact(player_type *user_ptr, object_type *o_ptr)
        {
                msg_format(_("あなたは%sに敵を締め殺すよう命じた。", "You order the %s to strangle your opponent."), name);
                if (!get_aim_dir(user_ptr, &dir)) return FALSE;
-               if (hypodynamic_bolt(user_ptr, dir, 100))
-                       break;
+               hypodynamic_bolt(user_ptr, dir, 100);
+               break;
        }
 
        case ACT_HYPODYNAMIA_2: