ok, i added a haste spell to my mud. what this does is gives characters another attack in a round. here's my code for it in fight.c
now, this works fine. but i also added a spell hands of wind. this spell would give them two attacks in a round and i put this code.
two_hit is copied exactly like one_hit beacuse i wanted the person with the spell to get two hits in. this doesn't seem to be working. i'm trying it on a mage with only one attack per round. when she is hasted she has her single, plus the hasted one_hit, but when she's hands of wind, she still only has her one attack per round. so the one_hit in the hands of wind if check isn't even workin.
any thoughts?
if ( IS_AFFECTED(ch, AFF_HASTE))
retcode = one_hit( ch, victim, dt );
return retcode;
now, this works fine. but i also added a spell hands of wind. this spell would give them two attacks in a round and i put this code.
if ( IS_AFFECTED(ch, AFF_HANDS_OF_WIND))
retcode = one_hit( ch, victim, dt );
retcode = two_hit( ch, victim, dt );
return retcode;
two_hit is copied exactly like one_hit beacuse i wanted the person with the spell to get two hits in. this doesn't seem to be working. i'm trying it on a mage with only one attack per round. when she is hasted she has her single, plus the hasted one_hit, but when she's hands of wind, she still only has her one attack per round. so the one_hit in the hands of wind if check isn't even workin.
any thoughts?