i am trying to make it so when this spell is on the target it adds some extra
delay. I KNOW this was working and suddenly it isn't. I don't get why it's
not working, I threw in another way to check it (They both are in) and it's
not working. I do not know why and it has totally escaped me. I installed
affect2 BEFORE I made this spell. Here's the code and THANKS
void WAIT_STATE(CHAR_DATA *ch, int npulse)
{
AFFECT_DATA *af;
char buf[MSL];
if (is_affected(ch, gsn_thick_blood)) //first test - fails
{
for ( af = ch->affected; af != NULL; af = af->next )
{
if (af->type == gsn_thick_blood)
break;
}
if (af == NULL)
{
REMOVE_BIT(ch->affected2_by,AFF_THICK_BLOOD);
}
npulse += (af->modifier * 4);
stc("Your thick blood makes activities hard.\n\r", ch);
sf(buf, "[ %d Second Delay ]\n\r", npulse/4);
stc(buf, ch);
}
if (IS_AFFECTED2(ch, gsn_thick_blood)) //second test - fails
{
stc("test\n\r", ch);
for ( af = ch->affected; af != NULL; af = af->next )
{
if (af->type == gsn_thick_blood)
break;
}
npulse += (af->modifier * 4);
stc("Your thick blood makes activities hard.\n\r", ch);
sf(buf, "[ %d Second Delay ]\n\r", npulse/4);
stc(buf, ch);
}
(ch)->wait = UMAX((ch)->wait, (npulse));
return;
}