Re: [Code]

From: Admin of The Keep (
Date: 09/11/96

On Tue, 10 Sep 1996, annick elziere wrote:

> attack code, check to make sure mob is alive, you are still
> fighting and so on.  But that is not the problem, I take a char
> with fourth attack that does 80 points of damage per hit and
> attack welmar, and after two rounds(wich he isent close to dead)
> the mud crashes, now if i go attack something with 0 dam the
> mud is fine and doesent crash or anything.
>     I was wondering if anyone knows if this is just some kinda
> problem with me running under win95 for testing and if this
> wont happen once i get the mud under a unix type system?
>     Something wierd is going on and i just cant figure it out:(

For every subsequent call to hit() you must do:

  if (FIGHTING(ch))
    hit(ch, FIGHTING(ch), TYPE_UNDEFINED);

So after the second attack there could still be a crash.


| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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