Added a PlayerREF failsafe to TransformBack()

This commit is contained in:
Eddoursul 2024-02-19 15:11:54 +01:00
parent 23dd423276
commit efa77fb18f
2 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@ Function TransformBack()
Actor PlayerREF = self.getActorReference()
if ! PlayerREF
PlayerREF = Game.GetForm(0x14) as Actor
endif
If PlayerREF.dispelSpell(_00E_FS_Affinity_ScourgeOfTheWilds_TitanSP)
while PlayerREF.getscale() > fPlayerScale
Utility.Wait(0.05)