diff --git a/Enderal SE v2.1.2 Changelog.txt b/Enderal SE v2.1.2 Changelog.txt index 1f27b6c8..2f0559a5 100644 --- a/Enderal SE v2.1.2 Changelog.txt +++ b/Enderal SE v2.1.2 Changelog.txt @@ -15,6 +15,7 @@ Beware, spoilers ahead! -- Marking NPCs no longer happens solely by pointing, press "Activate" to mark an actor. - Added the light attach crash fix by powerofthree. - Fixed hightlighting of permanent effects in the hero menu (regression since 2.1). +- Fixed apparition talismans not recognized as equipped after turning back from the werewolf form. 2.1.1 (2024-04-24) diff --git a/scripts/_00e_theriantrophist_transformstorage.pex b/scripts/_00e_theriantrophist_transformstorage.pex index 93c43498..097115f0 100644 Binary files a/scripts/_00e_theriantrophist_transformstorage.pex and b/scripts/_00e_theriantrophist_transformstorage.pex differ diff --git a/source/scripts/_00e_theriantrophist_transformstorage.psc b/source/scripts/_00e_theriantrophist_transformstorage.psc index 1ec231e4..cfe42524 100644 --- a/source/scripts/_00e_theriantrophist_transformstorage.psc +++ b/source/scripts/_00e_theriantrophist_transformstorage.psc @@ -216,24 +216,25 @@ EndFunction Function equipeItems() Actor PlayerRef = Game.GetPlayer() + bool bSKSE = SKSE.GetVersion() as bool if whatKindRight == 2 PlayerRef.EquipSpell(EquippedItemRight as Spell, 1) elseif EquippedItemRight && PlayerRef.GetItemCount(EquippedItemRight) > 0 - if SKSE.GetVersion() + if bSKSE PlayerRef.EquipItemEx(EquippedItemRight, 1) else - PlayerRef.equipitem(EquippedItemRight, false, true) + PlayerRef.EquipItem(EquippedItemRight, false, true) endif endif if whatKindLeft == 2 PlayerRef.EquipSpell(EquippedItemLeft as Spell, 0) elseif EquippedItemLeft && PlayerRef.GetItemCount(EquippedItemLeft) > 0 - if SKSE.GetVersion() + if bSKSE PlayerRef.EquipItemEx(EquippedItemLeft, 2) else - PlayerRef.equipitem(EquippedItemLeft, false, true) + PlayerRef.EquipItem(EquippedItemLeft, false, true) endif endif @@ -241,10 +242,15 @@ Function equipeItems() while index > 0 index -= 1 If wornArmor[index] && PlayerRef.GetItemCount(wornArmor[index]) > 0 - ;removing and readding items fixes the issue that set bonuses wouldn't apply properly after re-transforming - PlayerRef.RemoveItem(wornArmor[index], 1, true, _00E_TransformStorageREF) - _00E_TransformStorageREF.RemoveItem(wornArmor[index], 1, true, PlayerRef) - PlayerRef.EquipItem(wornArmor[index],false,true) + if bSKSE + ; EquipItemEx triggers OnEquipped properly + PlayerRef.EquipItemEx(wornArmor[index], 0, false, false) + else + ;removing and readding items fixes the issue that set bonuses wouldn't apply properly after re-transforming + PlayerRef.RemoveItem(wornArmor[index], 1, true, _00E_TransformStorageREF) + _00E_TransformStorageREF.RemoveItem(wornArmor[index], 1, true, PlayerRef) + PlayerRef.EquipItem(wornArmor[index], false, true) + endif EndIf Endwhile -endFunction \ No newline at end of file +endFunction