Fix active ability target gating for server-resolved ownership scopes

This commit is contained in:
Shard
2026-03-26 14:32:31 +00:00
parent cabadfc647
commit 84284be4d0
+10 -1
View File
@@ -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)