OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45c8623
)
[Fix] 暗黒・盲目耐性なしで暗黒属性攻撃を受けても盲目にならない
author
Habu
<habu1010+github@gmail.com>
Mon, 26 Sep 2022 14:14:16 +0000
(23:14 +0900)
committer
Habu
<habu1010+github@gmail.com>
Mon, 26 Sep 2022 14:14:16 +0000
(23:14 +0900)
リファクタリング時の真偽反転によるエンバグ。正しい真偽値に修正する。
src/effect/effect-player-resist-hurt.cpp
patch
|
blob
|
history
diff --git
a/src/effect/effect-player-resist-hurt.cpp
b/src/effect/effect-player-resist-hurt.cpp
index
71ad64d
..
bc96e7f
100644
(file)
--- a/
src/effect/effect-player-resist-hurt.cpp
+++ b/
src/effect/effect-player-resist-hurt.cpp
@@
-446,7
+446,7
@@
void effect_player_dark(PlayerType *player_ptr, EffectPlayerType *ep_ptr)
ep_ptr->dam = ep_ptr->dam * calc_dark_damage_rate(player_ptr, CALC_RAND) / 100;
- auto go_blind = is_blind;
+ auto go_blind =
!
is_blind;
go_blind &= !has_resist_blind(player_ptr);
go_blind &= !(has_resist_dark(player_ptr) || has_immune_dark(player_ptr));
go_blind &= !check_multishadow(player_ptr);