ScriptName zzz_lzext_indirectdeatheffect extends ActiveMagicEffect

Spell Property IndirectDeathTracker Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	IndirectDeathTracker.Cast(akTarget)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
    if (akTarget.GetAV("health") > 0)
        akTarget.DispelSpell(IndirectDeathTracker)
    endif
EndEvent
