Scriptname SuH_spellES_soulbend_hate extends activemagiceffect  

actor property PlayerRef auto

Event OnEffectStart(actor akTarget, actor akCaster)
	int h = akCaster.GetBaseActorValue("health") as int
	if h >= 81
		h -= 80
		akCaster.SetActorValue("health", h)
		int mh = akTarget.GetActorValue("health") as int
		int mm = akTarget.GetActorValue("magicka") as int
		int ms = akTarget.GetActorValue("stamina") as int
		int x = Math.Floor((mh+mm+ms)*0.5)
		akTarget.DamageActorValue("health", x)
	elseif akCaster == PlayerRef
		debug.Notification("Soul Bend Failed : Not Enough Status")
	endIf
endEvent