4
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.
 
 
 

22 lines
961 B

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
GlobalVariable Property _00E_Phasmalist_TankMode Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
If ControlQuest.IsApparitionSpawned() == False || _00E_Phasmalist_TankMode.GetValue() != 0
_00E_Phasmalist_NoApparitionCurrentlySummoned.Show()
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
EndEvent