OSDN Git Service

[Fix] #41335 薬が壁に当たっても割れない不具合を修正した / Resolved the issue that a potion wasn't shattere...
authorHourier <hourier@users.sourceforge.jp>
Mon, 25 Jan 2021 14:59:23 +0000 (23:59 +0900)
committerHourier <hourier@users.sourceforge.jp>
Mon, 25 Jan 2021 14:59:23 +0000 (23:59 +0900)
src/cmd-item/cmd-throw.c

index ec34be7..b033511 100644 (file)
@@ -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;
     }