Scriptname KARestoreStaminaSCRIPT extends ActiveMagicEffect  
{restores stamina}

Actor Property SelfRef  Auto Hidden 

SPELL Property RestoreStaminaSpell  Auto  

VisualEffect Property TargetVFX  Auto  

VisualEffect Property CasterVFX  Auto  

Event OnDying(Actor akKiller)	
Actor TargetActor = GetTargetActor()
; ;	debug.trace(self + "OnDeath() casting RestoreStaminaSpell from Target Actor:" + TargetActor)
	RestoreStaminaSpell.Cast(akKiller, akKiller)
			TargetVFX.Play(selfRef,1.0,akKiller)
			CasterVFX.Play(akKiller,1.0,selfref)
EndEvent