Scriptname SuH_comES_soulofpower extends activemagiceffect  

SuH_Fun Property _Fun auto

GlobalVariable Property SuH_PCScapstamina auto
GlobalVariable Property SuH_PCScapstaminaitem auto
GlobalVariable Property SuH_PCSspoint auto

Actor property playerRef auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef ; If player consumes
		int x = Math.Floor(2 + SuH_PCScapstamina.GetValue())
		SuH_PCScapstamina.SetValue(x)
		x = Math.Floor(2 + SuH_PCScapstaminaitem.GetValue())
		SuH_PCScapstaminaitem.SetValue(x)
		_Fun.BDSMcalc("s", 2)
		debug.Notification("Soul of Power - Granted 2 Stamina Cap")
	endIf
endEvent