4
Fork 0

Disable potion return in _00E_Theriantrophist_TransformSC in non-SKSE mode

master
Eddoursul 2 years ago
parent 10483ecf9b
commit ebba0413d0
  1. BIN
      scripts/_00e_theriantrophist_transformsc.pex
  2. 10
      source/scripts/_00e_theriantrophist_transformsc.psc

@ -26,12 +26,16 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
Endif
_00E_Theriantrophist_PlayerAsWerewolf playerWhileTransformedAlias = controlQuest.playerWhileTransformed
if _00E_FS_Theriantrophist_AllowTemporaryTransform.GetValueInt() == 0
if !playerWhileTransformedAlias.CanBeTransformed(akTarget.getCurrentLocation())
Debug.Notification(_00E_Theriantrophist_ForceTransformBackMessage.getName())
_RestorePotion()
if EnderalLib.IsDLLLoaded()
Debug.Notification(_00E_Theriantrophist_ForceTransformBackMessage.getName())
_RestorePotion()
else
; TODO: Replace the string with a localizable message.
Debug.Notification("You cannot transform here.")
endif
self.dispel()
return
Endif

Loading…
Cancel
Save