Scriptname SuH_comES_soulofmagic extends activemagiceffect  

GlobalVariable Property SuH_PCScapmagicka auto

Actor property playerRef auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == PlayerRef ; If player consumes
		int x = Math.Floor(1 + SuH_PCScapmagicka.GetValue())
		SuH_PCScapmagicka.SetValue(x)
		debug.Notification("Soul of Magic - Granted 1 Magicka Cap")
	endIf
endEvent