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))
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))