Re: calling do_hit right

From: Hydragon (doogie@amnesiac.NMSU.Edu)
Date: 12/25/96


   _/  _/  _/  _/  _/_/    _/_/      _/_/     _/_/_/    _/_/   _/_/  _/
   _/  _/  _/  _/  _/ _/   _/ _/    _/  _/  _/_/   _/  _/  _/  _/ _/ _/
   _/_/_/   _/_/   _/  _/  _/_/    _/_//_/  _/         _/  _/  _/ _/ _/
   _/  _/    _/    _/  _/  _/ _/   _/   _/  _/  _/_/   _/  _/  _/  _/_/
   _/  _/    _/    _/__/   _/  _/  _/   _/   _/_/_/     _/_/   _/   _/_

On Wed, 25 Dec 1996, Cyber Reaper wrote:

> I have added AFF_HASTE and SPELL_HASTE and it all workes fine
> (except)
> whenever I call     
> hit(ch, FIGHTING(ch), TYPE_UNDEFINED); 
> 
> the mud crashes when the mob dies and it tries to hit them again...
> 
> can any one help me here? how can I call HIT without the mud crashing?
> and what would be the best way to go about this?

  Put a check for whether the char is fighting before you call 
  if (FIGHTING(ch))
    hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
> 
> Please help..
> Thank you.. and Merry Christmas/Candlemass
> 
> Cyber (just do it damnit) Reaper.
> 
> +-----------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> |   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
> +-----------------------------------------------------------+
> 
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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