Try using dying unit instead of triggering unit in removedeaddummy.
Noofdummy doesn't need to be set to 0 and it's adding up so fast because you have your trigger adding 1 to it every time the trigger is called for every unit in sprayedunits. I think you can use set noofdummy = Number of units in sprayedunits. Then you don't really need that loop at all.
Add Clear Parent Hashtable hashtable to the final else in faeriefirehash. That will clean out all the values in your hashtable that may cause some lag if they build up.
I'm not sure what's causing those weird lag issues. o.o But if you make the above changes and it still lags we'll have to get someone better at triggers than I am. I'm fairly new too. But don't feel bad! This looks great from what I see. You've really advanced fast into trigger making. I just keep waiting for someone to jump in here and laugh at us then link this spell someone else made or tell us an unbelievably easy way to do it. haha >.>
Noofdummy doesn't need to be set to 0 and it's adding up so fast because you have your trigger adding 1 to it every time the trigger is called for every unit in sprayedunits. I think you can use set noofdummy = Number of units in sprayedunits. Then you don't really need that loop at all.
Add Clear Parent Hashtable hashtable to the final else in faeriefirehash. That will clean out all the values in your hashtable that may cause some lag if they build up.
I'm not sure what's causing those weird lag issues. o.o But if you make the above changes and it still lags we'll have to get someone better at triggers than I am. I'm fairly new too. But don't feel bad! This looks great from what I see. You've really advanced fast into trigger making. I just keep waiting for someone to jump in here and laugh at us then link this spell someone else made or tell us an unbelievably easy way to do it. haha >.>