OSDN Git Service

[Fix] #41174 忍者が盾装備時に表示上も正しく麻痺知らずを失うよう修正. /
authordeskull <deskull@users.sourceforge.jp>
Sun, 24 Jan 2021 10:43:48 +0000 (19:43 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 24 Jan 2021 10:43:48 +0000 (19:43 +0900)
Fixed Ninja to lose free-action correctly on display when equipped with a shield.

src/player/permanent-resistances.c

index a470318..497184b 100644 (file)
@@ -74,7 +74,7 @@ static void add_class_flags(player_type *creature_ptr, BIT_FLAGS *flags)
                        if ((!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)))
                                add_flag(flags, TR_SPEED);
-                       if (creature_ptr->lev > 24)
+                       if (creature_ptr->lev > 24 && !creature_ptr->icky_wield[0] && !creature_ptr->icky_wield[1])
                                add_flag(flags, TR_FREE_ACT);
                }