version 1.26 | | version 1.27 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.26 2000/12/19 06:54:52 peterm Exp $"; | | * "$Id: attack.c,v 1.27 2000/12/24 01:12:44 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
if (magic) { | | if (magic) { |
dam = dam * (100-op->resist[ATNR_MAGIC])/100; | | dam = dam * (100-op->resist[ATNR_MAGIC])/100; |
if (dam == 0) return 0; | | /* Don't do this - many attacktype are effects that don't |
| | * do damage, like deathstrike & confusion. |
| | */ |
| | /* if (dam == 0) return 0;*/ |
} | | } |
| | |
/* AT_CHAOS here is a weapon or monster. Spells are handled by hit_map | | /* AT_CHAOS here is a weapon or monster. Spells are handled by hit_map |