OSDN Git Service

[Fix] #41174 忍者の軽装時Lv24でつく麻痺知らずが、has_free_act()の実装ミスで正しく設定されず麻痺する不具合を修正. / Fix free...
authordeskull <deskull@users.sourceforge.jp>
Sat, 16 Jan 2021 06:34:55 +0000 (15:34 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 16 Jan 2021 06:34:55 +0000 (15:34 +0900)
src/player/player-status-flags.c

index 375f1a1..32ed1b9 100644 (file)
@@ -593,7 +593,7 @@ BIT_FLAGS has_free_act(player_type *creature_ptr)
         result |= 0x01 << FLAG_CAUSE_RACE;
     }
 
-    if (heavy_armor(creature_ptr) && (!creature_ptr->inventory_list[INVEN_RARM].k_idx || has_right_hand_weapon(creature_ptr))
+    if (creature_ptr->pclass == CLASS_NINJA && !heavy_armor(creature_ptr) && (!creature_ptr->inventory_list[INVEN_RARM].k_idx || has_right_hand_weapon(creature_ptr))
         && (!creature_ptr->inventory_list[INVEN_LARM].k_idx || has_left_hand_weapon(creature_ptr))) {
         if (creature_ptr->lev > 24)
             result |= 0x01 << FLAG_CAUSE_CLASS;