OSDN Git Service

Replaced "a" with "an" since it precedes "acid".
[hengband/hengband.git] / src / mspell / element-resistance-checker.c
index 902f96b..bf327ef 100644 (file)
@@ -36,7 +36,7 @@ void add_cheat_remove_flags_element(player_type *target_ptr, msr_type *msr_ptr)
     if (has_immune_fire(target_ptr))
         msr_ptr->smart |= SM_IMM_FIRE;
 
-    if (target_ptr->resist_cold)
+    if (has_resist_cold(target_ptr))
         msr_ptr->smart |= SM_RES_COLD;
 
     if (is_oppose_cold(target_ptr))
@@ -45,7 +45,7 @@ void add_cheat_remove_flags_element(player_type *target_ptr, msr_type *msr_ptr)
     if (has_immune_cold(target_ptr))
         msr_ptr->smart |= SM_IMM_COLD;
 
-    if (target_ptr->resist_pois)
+    if (has_resist_pois(target_ptr))
         msr_ptr->smart |= SM_RES_POIS;
 
     if (is_oppose_pois(target_ptr))