OSDN Git Service

Merge branch 'Release-3.0.0Alpha' into release/3.0.0Alpha
authordeskull <deskull@users.sourceforge.jp>
Fri, 11 Dec 2020 11:57:32 +0000 (20:57 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 11 Dec 2020 11:57:32 +0000 (20:57 +0900)
1  2 
src/combat/attack-criticality.c

@@@ -128,10 -127,11 +128,11 @@@ static void ninja_critical(player_type 
          return;
      }
  
 -    /* Todome check */
 -    bool is_weaken = (pa_ptr->m_ptr->hp < maxhp / 2);
 -    bool is_unique = ((r_ptr->flags1 & RF1_UNIQUE) != 0 || (r_ptr->flags7 & RF7_UNIQUE2) != 0);
++
 +    bool is_weaken = pa_ptr->m_ptr->hp < maxhp / 2;
 +    bool is_unique = ((r_ptr->flags1 & RF1_UNIQUE) != 0) || ((r_ptr->flags7 & RF7_UNIQUE2) != 0);
      bool is_critical = (is_weaken && one_in_((attacker_ptr->num_blow[0] + attacker_ptr->num_blow[1] + 1) * 10))
-         || ((one_in_(666) || ((pa_ptr->backstab || pa_ptr->surprise_attack) && one_in_(11))) && !is_unique);
+         || ((one_in_(666) || ((pa_ptr->backstab || pa_ptr->surprise_attack) && one_in_(11))) && !(is_unique));
      if (!is_critical)
          return;