Scriptname aaAlliriaRCRMaterialBaseEffectScript extends ActiveMagicEffect

Perk Property aaAlliriaRCRwaPlayerPerk auto
Spell Property AbAlliriaRCRMaterialAbilityAppl Auto
Spell Property AbWeapArmMatSpecAlliriaRCR Auto
Spell Property aaAlliriaRCRAdrenaline Auto
Spell Property PerkQuickReflexes Auto
    
Event OnEffectStart(Actor akTarget, Actor akCaster)
    Debug.Trace("Perk attached to actor")
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
    akTarget.RemovePerk(aaAlliriaRCRwaPlayerPerk)
    akTarget. RemoveSpell (AbAlliriaRCRMaterialAbilityAppl)
    akTarget. RemoveSpell (AbWeapArmMatSpecAlliriaRCR)
    akTarget. RemoveSpell (aaAlliriaRCRAdrenaline)
    akTarget. RemoveSpell (PerkQuickReflexes)
    Debug.Trace("Actor cleared from attached perk and spells")
EndEvent