OSDN Git Service

[Fix] ペットのモンスターが蘇生する場合を除いて死体復活によるペット判定が反転してしまっているバグを修正
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sat, 9 Mar 2024 10:06:16 +0000 (19:06 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Sat, 9 Mar 2024 10:06:16 +0000 (19:06 +0900)
src/effect/effect-item.cpp

index 8a90d2c..3e8e7b4 100644 (file)
@@ -228,7 +228,7 @@ bool affect_item(PlayerType *player_ptr, MONSTER_IDX src_idx, POSITION r, POSITI
             }
 
             BIT_FLAGS mode = 0L;
-            if (is_monster(src_idx) || player_ptr->current_floor_ptr->m_list[src_idx].is_pet()) {
+            if (is_player(src_idx) || player_ptr->current_floor_ptr->m_list[src_idx].is_pet()) {
                 mode |= PM_FORCE_PET;
             }