Scriptname SuH_spellES_focusshot_love extends activemagiceffect  

actor property PlayerRef auto

Event OnEffectStart(actor akTarget, actor akCaster)
	if akTarget != akCaster ; If caster didn't hit them self
		float casterStamina = akCaster.GetBaseActorValue("stamina") ; Get caster max stamina
		if casterStamina >= 13.0 ; If caster has spell cost (+1) Stamina available
			casterStamina -= 12.0
			akCaster.SetActorValue("stamina", casterStamina)
			akTarget.DamageActorValue("health", 14)
		elseIf akCaster == PlayerRef
			debug.Notification("Focus Shot Failed : Not Enough Stamina")
		endIf
	endIf
endEvent