2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_FS_Affinity_TransformApparation extends activemagiceffect
|
|
|
|
|
|
|
|
_FS_Phasmalist_ControlQuest Property ControlQuest Auto
|
|
|
|
Message Property _00E_Phasmalist_NoApparitionCurrentlySummoned Auto
|
|
|
|
Spell Property _00E_FS_Affinity_Soulcaller_ApparationWolfFormSP Auto
|
|
|
|
MagicEffect Property _00E_FS_Affinity_Soulcaller_ApparationWolfFormME Auto
|
2021-10-05 22:59:59 +00:00
|
|
|
GlobalVariable Property _00E_Phasmalist_TankMode Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
2021-10-05 22:59:59 +00:00
|
|
|
If ControlQuest.IsApparitionSpawned() == False || _00E_Phasmalist_TankMode.GetValue() != 0
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_Phasmalist_NoApparitionCurrentlySummoned.Show()
|
2021-10-05 22:59:59 +00:00
|
|
|
Else
|
|
|
|
Actor akApparition = ControlQuest.GetApparitionFailsafeRef()
|
|
|
|
If akApparition
|
|
|
|
If akApparition.HasMagicEffect(_00E_FS_Affinity_Soulcaller_ApparationWolfFormME)
|
|
|
|
akApparition.DispelSpell(_00E_FS_Affinity_Soulcaller_ApparationWolfFormSP)
|
|
|
|
Else
|
|
|
|
_00E_FS_Affinity_Soulcaller_ApparationWolfFormSP.Cast(akApparition)
|
|
|
|
EndIf
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
2021-10-05 22:59:59 +00:00
|
|
|
EndEvent
|