Disable potion return in _00E_Theriantrophist_TransformSC in non-SKSE mode
This commit is contained in:
parent
10483ecf9b
commit
ebba0413d0
Binary file not shown.
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user