Scriptname SuH_spellES_spiritmend_hate extends activemagiceffect  

GlobalVariable property SuH_PCSdesire auto
actor property PlayerRef auto

Event OnEffectStart(actor akTarget, actor akCaster)
	if akCaster == PlayerRef
		int desire = SuH_PCSdesire.GetValue() as int
		if desire > 0
			int x = Math.Floor(desire*0.333)
			akCaster.RestoreActorValue("health", x)
			akCaster.RestoreActorValue("magicka", x)
			akCaster.RestoreActorValue("stamina", x)
			SuH_PCSdesire.SetValue(0)
		endIf
	endIf
endEvent