I have in some innate spells which have a duration of -1, however theres a problem I just noticed in using unaffect, the while loop is called so long as the victim has affections and I've made it so if the current affect is -1, it skips it but the loop will keep continuing infinitly.. *** if (victim->affected) { aff = victim->affected; while(victim->affected) { if ( aff->duration > -1 ) affect_remove(victim, aff); send_to_char("There is a brief flash of light centered on you!\r\n", victim); send_to_char("You negated all of their spells!\r\n", ch); } } ** Can anyone help me out here? Thanks -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/04/01 PST