Re: Seg. fault, multi-attack

From: Daniel W. Burke (dwb@ix.netcom.com)
Date: 09/20/95


>if (MOB_FLAGGED(ch, MOB_SPEC) && mob_index[GET_MOB_RNUM(ch)].func != 
NULL)
>   (mob_index[GET_MOB_RNUM(ch)].func) (ch, ch, 0, "");
>
>[UNCUT], this is what I've added... 
>
>[MYADD-START]
>
>if(GET_SKILL(ch, SKILL_SECOND_ATTACK))
>    hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
>if(GET_SKILL(ch, SKILL_THIRD_ATTACK))
>    hit(ch, FIGHTING(ch), TYPE_UNDEFINED); 
>


this is the exact problem I had.... before the checks for the multi 
attack add

if (FIGHTING(ch))
  <check for second attack>
if (FIGHTING(ch))
  <check for 3rd attack>


that did it for me....



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