OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Refactor] #40514 calc_acid_damage_rate() に免疫処理反映. / Reflect immunity processing...
[hengband/hengband.git]
/
src
/
player
/
player-status-resist.c
diff --git
a/src/player/player-status-resist.c
b/src/player/player-status-resist.c
index
e92131d
..
053134e
100644
(file)
--- a/
src/player/player-status-resist.c
+++ b/
src/player/player-status-resist.c
@@
-58,6
+58,10
@@
PERCENTAGE calc_acid_damage_rate(player_type *creature_ptr)
PERCENTAGE per = 100;
int i;
+ if (is_immune_acid(creature_ptr)) {
+ return 0;
+ }
+
BIT_FLAGS flgs = is_vuln_acid(creature_ptr);
for (i = 0; i < FLAG_CAUSE_MAX; i++) {
if (flgs & (0x01 << i)) {