Scriptname aaaTKCMultiResist extends activemagiceffect  

spell Property Resist Auto
magiceffect Property ResistEffect Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

	if !akTarget.Hasmagiceffect(ResistEffect)
		int BaseDmg		= akCaster.GetEquippedWeapon().GetBaseDamage()
		int SkillLevel		= akCaster.GetActorValue("Marksman") as int
		if SkillLevel >= 100
			SkillLevel = 100
		endif
		float SkillCalc	= math.RadiansToDegrees(SkillLevel)
		float Dmg		= (math.sin(SkillCalc/100)*95) + BaseDmg

		akTarget.DamageAV("Health", Dmg)
		Resist.Cast(akTarget)
	else
		return
	endif

endEvent