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:
4f5b376
)
[Fix] #41174 忍者の軽装時Lv24でつく麻痺知らずが、has_free_act()の実装ミスで正しく設定されず麻痺する不具合を修正. / Fix free...
author
deskull
<deskull@users.sourceforge.jp>
Sat, 16 Jan 2021 06:34:55 +0000
(15:34 +0900)
committer
deskull
<deskull@users.sourceforge.jp>
Sat, 16 Jan 2021 06:34:55 +0000
(15:34 +0900)
src/player/player-status-flags.c
patch
|
blob
|
history
diff --git
a/src/player/player-status-flags.c
b/src/player/player-status-flags.c
index
375f1a1
..
32ed1b9
100644
(file)
--- a/
src/player/player-status-flags.c
+++ b/
src/player/player-status-flags.c
@@
-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;