1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
932 B

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