OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52328d7
)
[Fix] #41335 薬が壁に当たっても割れない不具合を修正した / Resolved the issue that a potion wasn't shattere...
author
Hourier
<hourier@users.sourceforge.jp>
Mon, 25 Jan 2021 14:59:23 +0000
(23:59 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Mon, 25 Jan 2021 14:59:23 +0000
(23:59 +0900)
src/cmd-item/cmd-throw.c
patch
|
blob
|
history
diff --git
a/src/cmd-item/cmd-throw.c
b/src/cmd-item/cmd-throw.c
index
ec34be7
..
b033511
100644
(file)
--- a/
src/cmd-item/cmd-throw.c
+++ b/
src/cmd-item/cmd-throw.c
@@
-376,7
+376,7
@@
void display_potion_throw(player_type *creature_ptr, it_type *it_ptr)
if (!object_is_potion(it_ptr->q_ptr))
return;
- if (
it_ptr->hit_body || it_ptr->hit_wall || (randint1(100) <
it_ptr->corruption_possibility)) {
+ if (
!it_ptr->hit_body && !it_ptr->hit_wall && (randint1(100) >=
it_ptr->corruption_possibility)) {
it_ptr->corruption_possibility = 0;
return;
}