Difference for server/spell_attack.c from version 1.34 to 1.35


version 1.34 version 1.35
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_attack_c =   * static char *rcsid_spell_attack_c =
  *   "$Id: spell_attack.c,v 1.34 2006/03/14 07:44:16 mwedel Exp $";   *   "$Id: spell_attack.c,v 1.35 2006/04/06 21:18:36 tchize Exp $";
  */   */
   
   
Line 1206
 
Line 1206
     if(op->path_denied&PATH_LIGHT)       if(op->path_denied&PATH_LIGHT)
  return 0;   return 0;
   
     tmp=get_archetype(FORCE_NAME);      tmp=create_archetype(FORCE_NAME);
     tmp->speed = 0.01;      tmp->speed = 0.01;
     tmp->stats.food = time;      tmp->stats.food = time;
     SET_FLAG(tmp, FLAG_IS_USED_UP);      SET_FLAG(tmp, FLAG_IS_USED_UP);
Line 1334
 
Line 1334
     }      }
   
     if(force==NULL) {      if(force==NULL) {
  force=get_archetype(FORCE_NAME);   force=create_archetype(FORCE_NAME);
  force->subtype = FORCE_CHANGE_ABILITY;   force->subtype = FORCE_CHANGE_ABILITY;
  free_string(force->name);   free_string(force->name);
  if (spell_ob->race)    if (spell_ob->race)
Line 1735
 
Line 1735
   
     if (!spell->other_arch) return 0;      if (!spell->other_arch) return 0;
   
     tmp=get_archetype(SWARM_SPELL);      tmp=create_archetype(SWARM_SPELL);
     tmp->x=op->x;      tmp->x=op->x;
     tmp->y=op->y;           tmp->y=op->y;    
     set_owner(tmp,op);       /* needed so that if swarm elements kill, caster gets xp.*/      set_owner(tmp,op);       /* needed so that if swarm elements kill, caster gets xp.*/
Line 1924
 
Line 1924
  new_draw_info_format(NDI_UNIQUE, 0, op, "You inflict %s on %s!",disease->name,walk->name);   new_draw_info_format(NDI_UNIQUE, 0, op, "You inflict %s on %s!",disease->name,walk->name);
   
  free_object(disease); /* don't need this one anymore */   free_object(disease); /* don't need this one anymore */
  flash=get_archetype(ARCH_DETECT_MAGIC);   flash=create_archetype(ARCH_DETECT_MAGIC);
  flash->x = x;   flash->x = x;
  flash->y = y;   flash->y = y;
  flash->map = walk->map;   flash->map = walk->map;


Legend:
line(s) removed in v.1.34 
line(s) changed
 line(s) added in v.1.35

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