OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87293a6
)
[Fix] #41174 忍者が盾装備時に表示上も正しく麻痺知らずを失うよう修正. /
author
deskull
<deskull@users.sourceforge.jp>
Sun, 24 Jan 2021 10:43:48 +0000
(19:43 +0900)
committer
deskull
<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
patch
|
blob
|
history
diff --git
a/src/player/permanent-resistances.c
b/src/player/permanent-resistances.c
index
a470318
..
497184b
100644
(file)
--- a/
src/player/permanent-resistances.c
+++ b/
src/player/permanent-resistances.c
@@
-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);
}