25 lines
932 B
Plaintext
25 lines
932 B
Plaintext
Scriptname _00E_FS_Affinity_Ghostblade_OnAttack extends activemagiceffect
|
|
|
|
_00E_Phasmalist_ApparationAlias Property apparationAlias Auto
|
|
Weapon Property _00E_FS_Affinity_Ghostblade_EtherealDagger Auto
|
|
Spell Property _00E_FakeArrowSP Auto
|
|
Spell Property _00E_FS_Ghostblade_FakeAttackSpellSP Auto
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
if apparationAlias.getActorReference()
|
|
Actor apparation = apparationAlias.getActorReference()
|
|
int equippedItemType = apparation.getEquippedItemType(1)
|
|
if equippedItemType <= 6
|
|
apparation.moveTo(akTarget)
|
|
Debug.SendAnimationEvent(apparation, "attackPowerStartInPlace")
|
|
Utility.wait(1)
|
|
apparation.removeitem(_00E_FS_Affinity_Ghostblade_EtherealDagger, 1)
|
|
ElseIf equippedItemType == 7
|
|
_00E_FakeArrowSP.Cast(apparation, akTarget)
|
|
Else
|
|
_00E_FS_Ghostblade_FakeAttackSpellSP.Cast(apparation, akTarget)
|
|
Endif
|
|
akTarget.damageav("health", 80)
|
|
Endif
|
|
Endevent
|