Wizard Item Recall Spell (#34411)

This commit is contained in:
ScarKy0
2025-02-08 22:56:08 +01:00
committed by GitHub
parent 1ef6e0bd57
commit bf6fd4d581
16 changed files with 376 additions and 20 deletions

View File

@@ -679,6 +679,9 @@ public abstract class SharedActionsSystem : EntitySystem
if (!action.RaiseOnUser && action.Container != null && !HasComp<MindComponent>(action.Container))
target = action.Container.Value;
if (action.RaiseOnAction)
target = actionId;
RaiseLocalEvent(target, (object) actionEvent, broadcast: true);
handled = actionEvent.Handled;
}