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:
a0014dd
)
[Fix] カメレオンが爆発するモンスターに変身してしまう
author
Habu
<habu1010+github@gmail.com>
Tue, 9 Jul 2024 13:21:21 +0000
(22:21 +0900)
committer
Habu
<habu1010+github@gmail.com>
Tue, 9 Jul 2024 13:23:25 +0000
(22:23 +0900)
25a7079
で変身元と変身先の取り違えてしまっており、変身元のモンスターに
対して爆発するかどうかの判定を行うようになってしまっている。
正しく変身先のモンスターに対して判定を行うように修正する。
src/monster/monster-list.cpp
patch
|
blob
|
history
diff --git
a/src/monster/monster-list.cpp
b/src/monster/monster-list.cpp
index
e3c6490
..
f084e36
100644
(file)
--- a/
src/monster/monster-list.cpp
+++ b/
src/monster/monster-list.cpp
@@
-225,7
+225,7
@@
static bool monster_hook_chameleon_lord(PlayerType *player_ptr, MonsterRaceId r_
return false;
}
- if (
m
_ptr->is_explodable()) {
+ if (
r
_ptr->is_explodable()) {
return false;
}
@@
-269,7
+269,7
@@
static bool monster_hook_chameleon(PlayerType *player_ptr, MonsterRaceId r_idx,
return false;
}
- if (
m
_ptr->is_explodable()) {
+ if (
r
_ptr->is_explodable()) {
return false;
}