Well see originally it was like that Naitsirk. I would love to try to explain but it's long and very hard to explain as text. Lets say MUI = 1 at the beginning.
Player activates Spell (MUI = 2)
Now all the variables will be set with the MUI = 2. So the caster, target etc.
Do you realise that if someone else casts the spell, MUI = 3 and then we don't know who the targets are, for the MUI (2) targets? I think I'm correct when I'm saying that it wouldn't work properly.
Once again, lets say a player finishes the spell when MUI = 3, now it's equal to 2 right?
Well one player had targets set when MUI = 3, but the program will be confused because now it's equal to 2.
So I really don't know how to make it MUI, so thats why I made it MPI or however you call it, with the number of triggering player, this way everyone has tehir own numbewr, and theres no way it will screw up, unless one player has the same hero and does it at the same time, which I am trying to fix up.
Please tell me how to do it properly otherwise.