From 84284be4d01f8fa48e0ecaba28b1a010dcad1038 Mon Sep 17 00:00:00 2001 From: Shard Date: Thu, 26 Mar 2026 14:32:31 +0000 Subject: [PATCH] Fix active ability target gating for server-resolved ownership scopes --- Server/src/SOR.Game/Abilities/AbilitySystem.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Server/src/SOR.Game/Abilities/AbilitySystem.cs b/Server/src/SOR.Game/Abilities/AbilitySystem.cs index 723787b..7303f17 100644 --- a/Server/src/SOR.Game/Abilities/AbilitySystem.cs +++ b/Server/src/SOR.Game/Abilities/AbilitySystem.cs @@ -544,8 +544,17 @@ public static class AbilitySystem } else if (requireClientTargets && !selector.Count.All && !selector.Count.UpTo && selector.Count.N > 0) { + // Some ownership scopes are server-resolved and should not require client picks. + // Keep this aligned with client auto-targeting behavior. + bool serverResolvedOwnership = selector.Ownership is + TargetOwnership.Self or + TargetOwnership.ExactSelf or + TargetOwnership.Target or + TargetOwnership.Random; + // Mandatory explicit-target action with no client selection provided — fail fast. - candidates = []; + if (!serverResolvedOwnership) + candidates = []; } if (activationRange is not null)