So I have been doing this kind of thing for a long time:
actor JustTarget = self.getcombattarget() <-- Pseudo code just for example
Event OnEffectfinish(Actor akTarget, Actor akCaster)
JustTarget = none
EndEvent
But it just occured to me that this may be overkill. For magic effect scripts there is no need to clear an actor ref value like this because the script will no longer "exist" in memory after this OnEffectfinish. Soooooo... it will not keep JustTarget persistent, er.. Right?