Disable potion return in _00E_Theriantrophist_TransformSC in non-SKSE mode

This commit is contained in:
Eddoursul 2021-12-29 13:48:11 +01:00
parent 10483ecf9b
commit ebba0413d0
2 changed files with 7 additions and 3 deletions

View File

@ -26,12 +26,16 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
Endif Endif
_00E_Theriantrophist_PlayerAsWerewolf playerWhileTransformedAlias = controlQuest.playerWhileTransformed _00E_Theriantrophist_PlayerAsWerewolf playerWhileTransformedAlias = controlQuest.playerWhileTransformed
if _00E_FS_Theriantrophist_AllowTemporaryTransform.GetValueInt() == 0 if _00E_FS_Theriantrophist_AllowTemporaryTransform.GetValueInt() == 0
if !playerWhileTransformedAlias.CanBeTransformed(akTarget.getCurrentLocation()) if !playerWhileTransformedAlias.CanBeTransformed(akTarget.getCurrentLocation())
Debug.Notification(_00E_Theriantrophist_ForceTransformBackMessage.getName()) if EnderalLib.IsDLLLoaded()
_RestorePotion() 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() self.dispel()
return return
Endif Endif