Scriptname aaaUDDispelOnHitScript extends ActiveMagicEffect  

bool bWaitLongEnough = false

Event OnEffectStart(Actor Target, Actor Caster)
	utility.wait(0.5)
	bWaitLongEnough = true
EndEvent

Event OnHit(ObjectReference akAggressor, Form akWeapon, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
	if bWaitLongEnough
		bWaitLongEnough = False
		self.dispel()
	endif
endevent



