… | |
… | |
734 | switch (hitter->type) |
734 | switch (hitter->type) |
735 | { |
735 | { |
736 | case POTION: |
736 | case POTION: |
737 | /* should player get a save throw instead of checking magic protection? */ |
737 | /* should player get a save throw instead of checking magic protection? */ |
738 | if (QUERY_FLAG (victim, FLAG_ALIVE) && !QUERY_FLAG (victim, FLAG_UNDEAD) && (victim->resist[ATNR_MAGIC] < 60)) |
738 | if (QUERY_FLAG (victim, FLAG_ALIVE) && !QUERY_FLAG (victim, FLAG_UNDEAD) && (victim->resist[ATNR_MAGIC] < 60)) |
739 | (void) apply_potion (victim, hitter); |
739 | apply_potion (victim, hitter); |
740 | break; |
740 | break; |
741 | |
741 | |
742 | case POISON: /* poison drinks */ |
742 | case POISON: /* poison drinks */ |
743 | /* As with potions, should monster get a save? */ |
743 | /* As with potions, should monster get a save? */ |
744 | if (QUERY_FLAG (victim, FLAG_ALIVE) && !QUERY_FLAG (victim, FLAG_UNDEAD) && (victim->resist[ATNR_POISON] < 60)) |
744 | if (QUERY_FLAG (victim, FLAG_ALIVE) && !QUERY_FLAG (victim, FLAG_UNDEAD) && (victim->resist[ATNR_POISON] < 60)) |