Scriptname SuH_comES_souloflife extends activemagiceffect  

SuH_Fun Property _Fun auto

GlobalVariable Property SuH_PCScaphealth auto
GlobalVariable Property SuH_PCScaphealthitem auto
GlobalVariable Property SuH_PCSbpoint auto

Actor property playerRef auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef ; If player consumes
		int x = Math.Floor(2 + SuH_PCScaphealth.GetValue())
		SuH_PCScaphealth.SetValue(x)
		int y = Math.Floor(2 + SuH_PCScaphealthitem.GetValue())
		SuH_PCScaphealthitem.SetValue(y)
		_Fun.BDSMcalc("b", 2)
		debug.Notification("Soul of Life - Granted 2 Health Cap")
	endIf
endEvent