OSDN Git Service

[Fix] #241 吸血の対象判定が逆になっていたのを修正した / Resolved the issue that the target of races for...
authorHourier <grapefox.whitelucifer.0408@gmail.com>
Sun, 21 Feb 2021 14:23:13 +0000 (23:23 +0900)
committerHourier <grapefox.whitelucifer.0408@gmail.com>
Sun, 21 Feb 2021 14:23:13 +0000 (23:23 +0900)
src/monster-race/monster-race-hook.c

index 5122eab..f8a0ead 100644 (file)
@@ -716,7 +716,7 @@ bool vault_aux_dark_elf(player_type *player_ptr, MONRACE_IDX r_idx)
 bool monster_living(MONRACE_IDX r_idx)
 {
     monster_race *r_ptr = &r_info[r_idx];
-    return test_bit(r_ptr->flags3, (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING));
+    return !test_bit(r_ptr->flags3, (RF3_DEMON | RF3_UNDEAD | RF3_NONLIVING));
 }
 
 /*!