Fixed warnings in defaultDisableHavokOnLoad and _00E_Theriantrophist_Chymikum

This commit is contained in:
Eddoursul 2023-12-13 10:37:10 +01:00
parent 82ca8f1a32
commit e5e81477e6
4 changed files with 8 additions and 4 deletions

View File

@ -49,7 +49,9 @@ Event OnEffectFinish(Actor akTarget, Actor akCaster)
OnChymikumEffectFinish(akTarget)
Endif
Self.Dispel()
if akTarget.HasMagicEffect(GetBaseObject())
Dispel()
endif
Endevent

View File

@ -64,7 +64,9 @@ Function ReleaseToHavok()
If myLink && (myLink.beenSimmed == False)
myLink.ReleaseToHavok()
EndIf
if Is3DLoaded() ; prevent Papyrus errors on a taken object
SetMotionType(Motion_Dynamic, True)
Self.ApplyHavokImpulse(0, 0, 1, 5)
endif
; Debug.Trace("Released Havok.")
EndFunction