Scriptname SuH_spellES_cursedblood_love extends activemagiceffect  

Spell property SuH_spellA_cursedblood_love auto

actor property PlayerRef auto

Event OnEffectStart(actor akTarget, actor akCaster)
	if akTarget != akCaster ; If caster didn't hit them self
		float casterMagicka = akCaster.GetBaseActorValue("magicka") ; Get caster max magicka
		float casterStamina = akCaster.GetBaseActorValue("stamina") ; Get caster max stamina
		if casterStamina >= 16.0 && casterMagicka >= 16; If caster has spell cost (+1)
			casterStamina -= 15.0
			casterMagicka -= 15.0
			akCaster.SetActorValue("stamina", casterStamina)
			akCaster.SetActorValue("magicka", casterMagicka)
			SuH_spellA_cursedblood_love.cast(akCaster, akTarget)
		elseIf akCaster == PlayerRef
			debug.Notification("Focus Shot Failed : Not Enough Magicka/Stamina")
		endIf
	endIf
endEvent