Difference for server/spell_effect.c from version 1.101 to 1.102


version 1.101 version 1.102
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_effect_c =   * static char *rcsid_spell_effect_c =
  *   "$Id: spell_effect.c,v 1.101 2003/03/03 05:13:08 mwedel Exp $";   *   "$Id: spell_effect.c,v 1.102 2003/03/08 05:35:33 mwedel Exp $";
  */   */
   
   
Line 229
 
Line 229
     /* High level creatures are immune, as are creatures immune to magic.  Otherwise,      /* High level creatures are immune, as are creatures immune to magic.  Otherwise,
      * give the creature a saving throw.       * give the creature a saving throw.
      */       */
     if (op->level>=20 || random_roll(1, 20, op, PREFER_HIGH) +      if (op->level>=20 || did_make_save(op, op->level, op->resist[ATNR_MAGIC]/10) ||
  op->resist[ATNR_MAGIC]/10 > savethrow[op->level] ||  
  (op->resist[ATNR_MAGIC]==100))   (op->resist[ATNR_MAGIC]==100))
  return;   return;
   
Line 2668
 
Line 2667
   
     m = op->map;      m = op->map;
   
     if(get_map_flags(m, &m, x, y, &x, &y) & (P_BLOCKED | P_OUT_OF_MAP)) {      /* Basically, if player is casting build directory, they can cast it on
        * the space they are standing, so don't check for blocked in that
        * case (we'll also presume that the fact that the player is on a space
        * means he's withing the map).  Always check the map if we're not
        * doing a directory, or if the target space for the feature does not
        * match the space the player (op) is on.
        */
       if ((spell_effect != SP_BUILD_DIRECTOR || x != op->x || y != op->y) &&
           (get_map_flags(m, &m, x, y, &x, &y) & (P_BLOCKED | P_OUT_OF_MAP))) {
  new_draw_info(NDI_UNIQUE, 0,op,"Something is in the way.");   new_draw_info(NDI_UNIQUE, 0,op,"Something is in the way.");
  return 0;   return 0;
     }      }


Legend:
line(s) removed in v.1.101 
line(s) changed
 line(s) added in v.1.102

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:48