OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6db4f2
)
[Fix] #2597 誰得の巻物を読み、INSTA_ARTフラグのあるベースアイテムが指定され、それに対応する★が全て生成済の場合、ベースアイテムがドロップする事象を修正した
author
Hourier
<66951241+Hourier@users.noreply.github.com>
Sun, 4 Sep 2022 12:23:58 +0000
(21:23 +0900)
committer
Hourier
<66951241+Hourier@users.noreply.github.com>
Mon, 5 Sep 2022 13:50:50 +0000
(22:50 +0900)
src/spell/spells-object.cpp
patch
|
blob
|
history
diff --git
a/src/spell/spells-object.cpp
b/src/spell/spells-object.cpp
index
c749113
..
02b1d03
100644
(file)
--- a/
src/spell/spells-object.cpp
+++ b/
src/spell/spells-object.cpp
@@
-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) {