Scriptname aaaa_Spell_MGEF extends activemagiceffect  

Perk Property Perk1 auto
aaaa_getactor_perk Property PerkScript Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
; 	Debug.Notification("OnEffectStart")
	Game.GetPlayer().AddPerk(Perk1)
endEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
; 	Debug.Notification("OnEffectFinish")
	if PerkScript.bBusy
	 	Debug.Notification("Busy")
	endif
	Game.GetPlayer().RemovePerk(Perk1)
endEvent
