I am making an AoS and am in the proccess of making heros. My current creation is a necromancer that has two auras, one being Mass Corpse Explosion. MCE causes a dying unit to explode on death damaging nearby units.
The problem is, it causes massive lag issues when I give the dummy unit a timed life. I know it is this, because I removed the line and the lag was removed as well, besides the fact that after a while there are thousands of the dummy units and that itself causes lag, so I _have_ to give them a timed life, obviously, but cant.
This is the code for the spell. Can someone please tell me if they have previous problems with applying timed life or if there's just something wrong in the code?
Code keeps getting messed up look at it throgh this: Clicky
The problem is, it causes massive lag issues when I give the dummy unit a timed life. I know it is this, because I removed the line and the lag was removed as well, besides the fact that after a while there are thousands of the dummy units and that itself causes lag, so I _have_ to give them a timed life, obviously, but cant.
This is the code for the spell. Can someone please tell me if they have previous problems with applying timed life or if there's just something wrong in the code?
Code keeps getting messed up look at it throgh this: Clicky