Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, Starfield, or Oblivion Remastered. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Skyrim Special Edition Patch
Component: Skyrim SE: Vanilla
Category: Papyrus
Assigned To: Nobody
Platform: All
Severity: Very Low
Votes: 0
Watching: N/A
Opened By DarthVitrial on Nov 9, 2026 12:24 pm
Closed By Arthmoor on Nov 9, 2026 2:22 pm
Resolution: Fixed
Comment: Fixed for USSEP 4.4.0

Issue #37318: Non-hostile/passive spells can trigger OnHit aggro scripts

 
SetStageOnAttacked scripts have an oversight where they'll trigger onHit by a spell without checking if the spell is Hostile first. This can make harmless healing spells or passive cloaks trigger them.
Added a safety check that only aggros on hit by a spell if the spell is hostile.

I didn't change it on defaultsetstagealiasscript, that one handles things a bit differently and might not assume the spell is hostile.



Attached Files:

wealiasscript.psc
defaultSetStageOnAttacked.psc
defaultSetStageOnAttackedRefAlias.psc

Related Issues: 37328