Difference for server/spell_util.c from version 1.80 to 1.81


version 1.80 version 1.81
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_util_c =   * static char *rcsid_spell_util_c =
  *   "$Id: spell_util.c,v 1.80 2003/09/13 05:02:13 mwedel Exp $";   *   "$Id: spell_util.c,v 1.81 2003/12/01 05:45:18 mwedel Exp $";
  */   */
   
   
Line 863
 
Line 863
  /* Safety check to make sure we don't get any mana storms in scorn */   /* Safety check to make sure we don't get any mana storms in scorn */
  if (get_map_flags(op->map, NULL, op->x, op->y, NULL, NULL) & P_NO_MAGIC) {   if (get_map_flags(op->map, NULL, op->x, op->y, NULL, NULL) & P_NO_MAGIC) {
      new_draw_info(NDI_UNIQUE, 0, op, "The magic warps and you are turned inside out!");       new_draw_info(NDI_UNIQUE, 0, op, "The magic warps and you are turned inside out!");
      hit_player(tmp,9998,op,AT_INTERNAL);       hit_player(op,9998,op,AT_INTERNAL);
   
  } else {   } else {
      new_draw_info(NDI_UNIQUE, 0,op,"You lose control of the mana!  The uncontrolled magic blasts you!");       new_draw_info(NDI_UNIQUE, 0,op,"You lose control of the mana!  The uncontrolled magic blasts you!");
Line 962
 
Line 962
      }       }
  }   }
   
  if (SP_level_spellpoint_cost(caster, spell_ob, SPELL_MANA) >  op->stats.sp) {   if (SP_level_spellpoint_cost(caster, spell_ob, SPELL_MANA) &&
        SP_level_spellpoint_cost(caster, spell_ob, SPELL_MANA) >  op->stats.sp) {
      new_draw_info(NDI_UNIQUE, 0,op,"You don't have enough mana.");       new_draw_info(NDI_UNIQUE, 0,op,"You don't have enough mana.");
      return 0;       return 0;
  }   }
  if (SP_level_spellpoint_cost(caster,spell_ob, SPELL_GRACE) >  op->stats.grace) {   if (SP_level_spellpoint_cost(caster,spell_ob, SPELL_GRACE) &&
        SP_level_spellpoint_cost(caster,spell_ob, SPELL_GRACE) >  op->stats.grace) {
      if(random_roll(0, op->stats.Wis-1, op, PREFER_HIGH) + op->stats.grace -       if(random_roll(0, op->stats.Wis-1, op, PREFER_HIGH) + op->stats.grace -
         10*SP_level_spellpoint_cost(caster,spell_ob, SPELL_GRACE)/op->stats.maxgrace >0) {          10*SP_level_spellpoint_cost(caster,spell_ob, SPELL_GRACE)/op->stats.maxgrace >0) {
  new_draw_info_format(NDI_UNIQUE, 0,op,    new_draw_info_format(NDI_UNIQUE, 0,op,


Legend:
line(s) removed in v.1.80 
line(s) changed
 line(s) added in v.1.81

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