@xorkatoss: actually, he have some attacked unit used
-
((Attacked unit) has buff Prismatic Rift ) Equal to True
-
((Attacked unit) is an illusion) Equal to False
triggering unit is better, its faster and safer...
your deindexing isn't good yet... you need to learn how to do dynamic index recycling... because right now you would still loop thru the unused indexes (at least up to the boolean check at top)... with dynamic index recycling, you won't do that...
Also, three different variables are better than the array for MUI[1,2,3]... arrays take more memory and is slower than variables... since you only used three indexes for the MUI array, its better to just use three different variables...