Affection flag structure

From: Yoink! (xombi@accessus.net)
Date: 07/08/96


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);
           }
     }
}

This code crashes the mud. it's set up correctly so i'm sure my
understanding of how affection flags work is off.

questions:

1. What's crashing  the mud here?
2. How do i tell the duration on a paticular affection flag, say i wanna
check how much itme is left on poison?
3. How do i get this spell to skip certain affection flags, like group or
follow?



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