Scriptname aaaTKCMultiResist extends activemagiceffect  

spell Property Resist Auto
magiceffect Property ResistEffect Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

	if !akTarget.Hasmagiceffect(ResistEffect)
		if akCaster.GetAV("Destruction")<25
			akTarget.DamageAV("Health", 15.0)
		elseif akCaster.GetAV("Destruction")>=25 && akCaster.GetAV("Destruction")<50 
			akTarget.DamageAV("Health", 30.0)	
		elseif akCaster.GetAV("Destruction")>=50 && akCaster.GetAV("Destruction")<75 
			akTarget.DamageAV("Health", 45.0)	
		elseif akCaster.GetAV("Destruction")>=75 && akCaster.GetAV("Destruction")<100 
			akTarget.DamageAV("Health", 60.0)	
		elseif akCaster.GetAV("Destruction") == 100 
			akTarget.DamageAV("Health", 75.0)	
		endif
		Resist.Cast(akTarget)
	else
		return
	endif

endEvent