the wait is indeed very bad. there need to be locals, otherwise the waits will bug.
i think you need "A Unit is damaged" for what you want to do
I was basically making a "cleaving transmute" so to speak. It works fine, but seems to cause huge lag and leaks in game. I have removed all the leaks I could see.. what else is there?
1. yeah the wait bugs
2. there is no "a unit is damaged"
Sadly "unit takes damage" only works for specified units :/
And this is supposed to work on all units.
What you need is a damage detecting system. (i am sure there is one in spells)
I think I can see what causes this lagg. Your trigger event will run instant again when your dummy unit cast the spell on the units, that will cause a huge loop.
Nope not really :/
Being targeted by a spell does not count as being attacked...
But you should really check your dummy :/
If it has an attack it might cause this lag