[SMAUG] Spell-lag

[SMAUG] Spell-lag



Ok,
I made it as Nivek suggested...

It seems to work well, but I don't know where I've to reactivate the multi_hit function at the end of the spell-lag...

I've try this code but then I commented it because the xREMOVE_BIT was executed before the next violence_update()...

->magic.c
->do_cast

else
	{
	   //Modifica di Dalamar
          //Setta il BIT PLR_CASTING...
    	   //Dalamar Code START

           xSET_BIT(ch->act, PLR_CASTING);

    	   //Dalamar Code END

	   start_timer(&time_used);
	   retcode = (*skill->spell_fun) ( sn, ch->level, ch, vo );
	   end_timer(&time_used);
	   update_userec(&time_used, &skill->userec);
	   //Modifica di Dalamar
          //Resetta il BIT PLR_CASTING...
    	   //Dalamar Code START

           //xREMOVE_BIT(ch->act, PLR_CASTING);

    	   //Dalamar Code END
	}

My question is "Where am I sure that the all the spell-lag is been processed and I can xREMOVE_BIT()?"

TIA,

	Dalamar
P.S.
At this moment, with this code, After one casted once, he can't do physical damage for all his life :)))
He made a choice... He chose Magic... for all his life ... and beyond...