enderalse/scripts/source/_00e_fs_affinity_transformapparation.psc

23 lines
961 B
Plaintext
Raw Normal View History

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
Event OnEffectStart(Actor akTarget, Actor akCaster)
2021-10-05 22:59:59 +00:00
If ControlQuest.IsApparitionSpawned() == False || _00E_Phasmalist_TankMode.GetValue() != 0
_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
EndIf
2021-10-05 22:59:59 +00:00
EndEvent