2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_Affinity_Ghostblade_OnAttack extends activemagiceffect
|
|
|
|
|
2021-10-05 22:59:59 +00:00
|
|
|
_FS_Phasmalist_ControlQuest Property PhasmalistControlQuest Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
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)
|
2021-10-05 22:59:59 +00:00
|
|
|
Actor akApparition = PhasmalistControlQuest.GetApparitionFailsafeRef()
|
|
|
|
If akApparition
|
|
|
|
Int iEquippedItemType = akApparition.GetEquippedItemType(1)
|
|
|
|
If iEquippedItemType <= 6
|
|
|
|
akApparition.MoveTo(akTarget)
|
|
|
|
Debug.SendAnimationEvent(akApparition, "attackPowerStartInPlace")
|
|
|
|
Utility.Wait(1)
|
|
|
|
akApparition.RemoveItem(_00E_FS_Affinity_Ghostblade_EtherealDagger, 1)
|
|
|
|
ElseIf iEquippedItemType == 7
|
|
|
|
_00E_FakeArrowSP.Cast(akApparition, akTarget)
|
2021-10-05 22:15:58 +00:00
|
|
|
Else
|
2021-10-05 22:59:59 +00:00
|
|
|
_00E_FS_Ghostblade_FakeAttackSpellSP.Cast(akApparition, akTarget)
|
|
|
|
EndIf
|
|
|
|
akTarget.DamageAV("Health", 80)
|
|
|
|
EndIf
|
|
|
|
EndEvent
|