Scriptname nDragonGlacialArmorScript extends activemagiceffect  
import utility

actor me
objectreference he
bool isready=true

Event OnEffectStart(Actor akTarget, Actor akCaster)
	me = akCaster
Endevent

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
  bool abBashAttack, bool abHitBlocked)
	if isready
		isready = false
		he = akAggressor
		me.docombatspellapply(xharm, he)
		RegisterForSingleUpdate(0.25)
	Endif
Endevent

Event OnUpdate()
	isready = true
Endevent

SPELL Property xHarm  Auto  