lol, you still arent avoiding it completely. What if 100 units use the same thing at once? BAM!
you are stubborn, arent u?
@PurplePoot: All you have to do is increase your limitations from 50, to whatever number you wish. The arrays will resize themselves, so there is no worry there. If you really expect this will reach such a high number, try setting your array high, and setting the reset at 1000, or 2000, or whatever you wish.
Do you really expect more than 1000 units will be casting a spell at any one given time? lol. And if they do, do you expect the game won't lag no matter what's going on? Lol... Just 1000 units actively being in the game can cause lag.
It is unrealistic to expect more than 200 units to be casting the same spell at the same time, anyways. If you do, you have a VERY special case...