ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/attack.C
(Generate patch)

Comparing deliantra/server/server/attack.C (file contents):
Revision 1.125 by root, Sun Nov 29 09:41:28 2009 UTC vs.
Revision 1.126 by root, Sun Nov 29 10:55:18 2009 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines