Auto DHIT

From: Tarot (tarot@erinet.com)
Date: 06/04/96


Ok, call me a moron, but does anyone know why this code (from the end of
fight.c) causes the mud to crash?

/* Auto DHIT */
    if (GET_LEVEL(ch) >= 15 && GET_CLASS(ch) == CLASS_WARRIOR && !IS_NPC(ch)) 
      hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
/* end of Auto DHIT */
    hit(ch, FIGHTING(ch), TYPE_UNDEFINED);    
    if (MOB_FLAGGED(ch, MOB_SPEC) && mob_index[GET_MOB_RNUM(ch)].func !=
NULL)         (mob_index[GET_MOB_RNUM(ch)].func) (ch, ch, 0, "");

I think I might have missed something earlyer in the code, but not quite
sure.  I player hits and then Dhits then the prompt appears and the mud crashes.

HELP,
Doyle
      Builder of Worlds / IMP Want-a-be 
          I thought C was a letter!
 //////// //////// //////// //////// ////////
   //    //    // //    // //    //    //
  //    //////// //////// //    //    //
 //    //    // // \\    //    //    //
//    //    // //   \\  ////////    //
 http://www.erinet.com/tarot/index.html
Download the newest version of WorldBuilder
                  Alpha 3



This archive was generated by hypermail 2b30 : 12/18/00 PST