OSDN Git Service

[Refactor] #40514 player_type の resist_chaos, resist_dark 変数を廃止. / Abolished the...
[hengband/hengband.git] / src / mspell / high-resistance-checker.c
index e6b7fbf..1ea9696 100644 (file)
@@ -15,7 +15,7 @@ void add_cheat_remove_flags_others(player_type *target_ptr, msr_type *msr_ptr)
     if (has_resist_lite(target_ptr))
         msr_ptr->smart |= SM_RES_LITE;
 
-    if (target_ptr->resist_dark)
+    if (has_resist_dark(target_ptr))
         msr_ptr->smart |= SM_RES_DARK;
 
     if (target_ptr->resist_fear)
@@ -24,7 +24,7 @@ void add_cheat_remove_flags_others(player_type *target_ptr, msr_type *msr_ptr)
     if (has_resist_conf(target_ptr))
         msr_ptr->smart |= SM_RES_CONF;
 
-    if (target_ptr->resist_chaos)
+    if (has_resist_chaos(target_ptr))
         msr_ptr->smart |= SM_RES_CHAOS;
 
     if (target_ptr->resist_disen)