OSDN Git Service

[Fix] #2597 誰得の巻物を読み、INSTA_ARTフラグのあるベースアイテムが指定され、それに対応する★が全て生成済の場合、ベースアイテムがドロップする事象を修正した
authorHourier <66951241+Hourier@users.noreply.github.com>
Sun, 4 Sep 2022 12:23:58 +0000 (21:23 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Mon, 5 Sep 2022 13:50:50 +0000 (22:50 +0900)
src/spell/spells-object.cpp

index c749113..02b1d03 100644 (file)
@@ -147,6 +147,10 @@ void amusement(PlayerType *player_ptr, POSITION y1, POSITION x1, int num, bool k
             }
         }
 
+        if (insta_art && (a_idx == 0)) {
+            continue;
+        }
+
         /* Make an object (if possible) */
         i_ptr->prep(k_idx);
         if (a_idx) {