so... set $target(id) to a var when you start fighting it, and when you lose target, check $spawn($vWhatever,state)... how hard is that?
If you would have actually bothered reading the whole thread you would have realized I already did that and posted that it worked.