|
|
|
@ -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 |
|
|
|
|