OSDN Git Service

[Fix] #40514 calc_to_hit() 修正 / Fix calc_to_hit().
authordeskull <deskull@users.sourceforge.jp>
Fri, 21 Aug 2020 17:21:43 +0000 (02:21 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 21 Aug 2020 17:21:43 +0000 (02:21 +0900)
src/player/player-status.c

index d6d4bdd..cee90c1 100644 (file)
@@ -3181,9 +3181,6 @@ static s16b calc_to_hit(player_type *creature_ptr, INVENTORY_IDX slot)
                 bonus_to_h = (o_ptr->to_h + 1) / 2;
         }
 
-        if (object_is_known(o_ptr))
-            creature_ptr->dis_to_h_b += (s16b)bonus_to_h;
-
         if ((i == INVEN_LEFT || i == INVEN_RIGHT) && !have_two_handed_weapons(creature_ptr)) {
             creature_ptr->to_h[i - INVEN_RIGHT] += (s16b)bonus_to_h;
             continue;