Scriptname eqEffectRefreshSpellsScript Extends ActiveMagicEffect Event OnEffectStart(Actor akTarget, Actor akCaster) Actor TargetRef = Game.GetCurrentCrosshairRef() as Actor Actor PlayerRef = Game.GetPlayer() if !TargetRef TargetRef = PlayerRef endif Int iLength = TargetRef.GetSpellCount() Int iIndex while iIndex < iLength ; get spell Spell kSpell = TargetRef.GetNthSpell(iIndex) Debug.Trace(iIndex + "/" + iLength + " " + kSpell + " " + kSpell.GetName()) ; remove TargetRef.RemoveSpell(kSpell) Utility.Wait(0.5) ; add TargetRef.AddSpell(kSpell, abVerbose = false) ; abort check if PlayerRef.IsSneaking() Debug.Notification("Aborted") return endif Utility.Wait(0.5) iIndex += 1 endwhile Debug.Notification("Done") EndEvent