Difference for server/attack.c from version 1.86 to 1.87


version 1.86 version 1.87
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_attack_c =   * static char *rcsid_attack_c =
  *   "$Id: attack.c,v 1.86 2003/03/08 05:35:32 mwedel Exp $";   *   "$Id: attack.c,v 1.87 2003/03/20 07:21:05 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 62
 
Line 62
  return TRUE;   return TRUE;
     roll = rndm(1, 20);      roll = rndm(1, 20);
   
     /* the attacktypes have no meaning for object saves */      /* the attacktypes have no meaning for object saves
     type = type & ~(AT_CONFUSION|AT_DRAIN|AT_GHOSTHIT|AT_POISON|AT_SLOW|       * If the type is only magic, don't adjust type - basically, if
        * pure magic is hitting an object, it should save.  However, if it
        * is magic teamed with something else, then strip out the
        * magic type, and instead let the fire, cold, or whatever component
        * destroy the item.  Otherwise, you get the case of poisoncloud
        * destroying objects because it has magic attacktype.
        */
       if (type != AT_MAGIC)
    type &= ~(AT_CONFUSION|AT_DRAIN|AT_GHOSTHIT|AT_POISON|AT_SLOW|
      AT_PARALYZE|AT_TURN_UNDEAD|AT_FEAR|AT_DEPLETE|AT_DEATH|       AT_PARALYZE|AT_TURN_UNDEAD|AT_FEAR|AT_DEPLETE|AT_DEATH|
      AT_COUNTERSPELL|AT_HOLYWORD|AT_BLIND|AT_LIFE_STEALING);       AT_COUNTERSPELL|AT_HOLYWORD|AT_BLIND|AT_LIFE_STEALING|
        AT_MAGIC);
   
     if (type == 0)      if (type == 0)
  return TRUE;   return TRUE;


Legend:
line(s) removed in v.1.86 
line(s) changed
 line(s) added in v.1.87

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