OSDN Git Service

[Fix] #40937 冷血動物の判定が間違っていて赤外線視力が効かなかった問題を修正した / Resolved the issue that infrared...
authorHourier <hourier@users.sourceforge.jp>
Mon, 9 Nov 2020 13:45:06 +0000 (22:45 +0900)
committerHourier <hourier@users.sourceforge.jp>
Mon, 9 Nov 2020 13:45:22 +0000 (22:45 +0900)
src/monster/monster-update.c

index e9bcfe5..4da0716 100644 (file)
@@ -333,8 +333,8 @@ static bool check_cold_blood(player_type *subject_ptr, um_type *um_ptr, const PO
         return FALSE;
 
     monster_race *r_ptr = &r_info[um_ptr->m_ptr->r_idx];
-    if ((r_ptr->flags2 & (RF2_COLD_BLOOD | RF2_AURA_FIRE)) != RF2_COLD_BLOOD)
-        return TRUE;
+    if ((r_ptr->flags2 & (RF2_COLD_BLOOD | RF2_AURA_FIRE)) == RF2_COLD_BLOOD)
+        return FALSE;
 
     um_ptr->easy = TRUE;
     um_ptr->flag = TRUE;