enderalse/source/scripts/_00e_a2_danceofbladesapplysc.psc

27 lines
670 B
Plaintext
Raw Normal View History

Scriptname _00E_A2_DanceOfBladesApplySC extends activemagiceffect
Event OnEffectStart(Actor akTarget, Actor akCaster)
Target = akTarget
If !Target.HasSpell(_00E_A2_DanceOfBladesMonitorAb)
akTarget.AddSpell(_00E_A2_DanceOfBladesMonitorAb)
RegisterForSingleUpdate(1)
EndIf
EndEvent
Event OnUpdate()
If PlayerREF.HasMagicEffect(_00E_A2_DanceOfBladesCloakME)
RegisterForSingleUpdate(1)
Else
Target.RemoveSpell(_00E_A2_DanceOfBladesMonitorAb)
EndIf
EndEvent
Spell Property _00E_A2_DanceOfBladesSP Auto
Spell Property _00E_A2_DanceOfBladesMonitorAb Auto
MagicEffect Property _00E_A2_DanceOfBladesCloakME Auto
Actor Property PlayerREF Auto
Actor Target