Added a sanity check to OnEffectFinish in sprigganCallAnimalsAOE

This commit is contained in:
Eddoursul 2024-01-27 21:03:42 +01:00
parent 243dde6fb3
commit 1089d32429
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -48,6 +48,10 @@ EVENT OnEffectFinish(Actor akTarget, Actor akCaster)
; debug.trace("TEST: Released from Spriggan Enthrallment: "+self) ; debug.trace("TEST: Released from Spriggan Enthrallment: "+self)
if ! akTarget
return
endif
akTarget.setActorValue("confidence", myConfidence) akTarget.setActorValue("confidence", myConfidence)
akTarget.setActorValue("aggression", myAggression) akTarget.setActorValue("aggression", myAggression)
akTarget.RemoveFromFaction(sprigganFaction) akTarget.RemoveFromFaction(sprigganFaction)