Hola amigos,
Ok seriously, can you guys tell me what do you think should happen with this?
<img src="http://i1081.photobucket.com/albums/j349/Djordhan/foreach1.png">
I would expect all instance of Foe to be checked every time a Friend is destroyed then set each Foe's target value to 0 if its current target equals the destroyed Friend's UID.
Currently, only one instance has its target value reset to 0. Result, some Foe will continue shooting at already destroyed target forever.