CODE: Re: Affection flag structure

From: Billy H. Chan (bhchan@po.EECS.Berkeley.EDU)
Date: 07/08/96


On Mon, 8 Jul 1996, Yoink! wrote:

> ASPELL(spell_dispel_magic)
> {
>     if (!ch || !victim)
> 	return;
> 
>     if (!pk_allowed && !IS_NPC(ch) && !IS_NPC(victim))
> 	return;
> 
>      {while (vict->affected  && vict->affected->duration !=DURATION_INNATE
>           || IS_NPC(victim))
>            {if (GET_SKILL(ch, SPELL_DISPEL_MAGIC) > number(1, 101))
>                affect_remove(vict, vict->affected);
>            }
>      }
> }

Is it me or did you mix victim and vict in there?  How the heck did this
get past your compiler?!
-- Billy  H. Chan     bhchan@po.eecs.berkeley.edu  bhchan@csua.berkeley.edu
   CogSci/CompSci     http://www.csua.berkeley.edu/~bhchan     ResumeInside



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