Scriptname SuH_ss_numbingtouchScript extends activemagiceffect  

Spell Property SuH_sse_numbingtouch auto

Actor Property playerRef Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	
	if akCaster == playerRef
		float x = playerRef.GetBaseActorValue("stamina")
		
		if x > 40
			x -= 40
			playerRef.SetActorValue("stamina", x)
			SuH_sse_numbingtouch.cast(akCaster, akTarget)
		else
			debug.Notification("Numbing Touch Reflected : Not Enough Stamina")
		endIf
	else
		float x = akCaster.GetBaseActorValue("stamina")
		if x > 40
			x -= 40
			akCaster.SetActorValue("stamina", x)
			SuH_sse_numbingtouch.cast(akCaster, akTarget)
		endIf
	endIf
endEvent