version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.18 2005/03/06 20:38:55 akirschbaum Exp $"; | | * "$Id: spell_attack.c,v 1.19 2005/05/07 11:51:20 tchize Exp $"; |
*/ | | */ |
| | |
| | |
| | |
{ | | { |
if ( head->level > level ) continue; | | if ( head->level > level ) continue; |
if ( random_roll( 0, 100, caster, PREFER_LOW ) >= ( 20 + MIN( 50, 2 * ( level - head->level ) ) ) ) | | if ( random_roll( 0, 100, caster, PREFER_LOW ) >= ( 20 + MIN( 50, 2 * ( level - head->level ) ) ) ) |
// Failed, no effect | | /* Failed, no effect */ |
continue; | | continue; |
} | | } |
| | |