version 1.85 | | version 1.86 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.85 2003/02/25 07:18:07 mwedel Exp $"; | | * "$Id: attack.c,v 1.86 2003/03/08 05:35:32 mwedel Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if (op->speed && | | if (op->speed && |
(QUERY_FLAG(op, FLAG_MONSTER) || op->type==PLAYER) && | | (QUERY_FLAG(op, FLAG_MONSTER) || op->type==PLAYER) && |
!(rndm(0, (attacknum == ATNR_SLOW?6:3)-1)) && | | !(rndm(0, (attacknum == ATNR_SLOW?6:3)-1)) && |
((random_roll(1, 20, op, PREFER_LOW) + | | !did_make_save(op, level_diff, op->resist[attacknum]/10)) { |
op->resist[attacknum]/10) < savethrow[level_diff])) { | | |
| | |
/* Player has been hit by something */ | | /* Player has been hit by something */ |
if (attacknum == ATNR_CONFUSION) confuse_player(op,hitter,dam); | | if (attacknum == ATNR_CONFUSION) confuse_player(op,hitter,dam); |
| | |
npc_call_help(op); | | npc_call_help(op); |
} | | } |
| | |
if(magic && (random_roll(1, 20, op, PREFER_HIGH))>=savethrow[op->level]) | | if (magic && did_make_save(op, op->level, 0)) |
maxdam=maxdam/2; | | maxdam=maxdam/2; |
| | |
attack_message(maxdam, maxattacktype, op, hitter); | | attack_message(maxdam, maxattacktype, op, hitter); |