Scriptname SuH_spellES_soulbend_love extends activemagiceffect  

actor property PlayerRef auto

Event OnEffectStart(actor akTarget, actor akCaster)
	int h = akCaster.GetBaseActorValue("health") as int
	int m = akCaster.GetBaseActorValue("magicka") as int
	if h >= 21 && m >= 26
		h -= 20
		m -= 25
		akCaster.SetActorValue("health", h)
		akCaster.SetActorValue("magicka", m)
		int mh = akTarget.GetBaseActorValue("health") as int
		int x = Math.Floor(mh - (mh*0.1))
		akTarget.SetActorValue("health", x)
		akTarget.DamageActorValue("health", 80)
	elseif akCaster == PlayerRef
		debug.Notification("Soul Bend Failed : Not Enough Status")
	endIf
endEvent