multiple workers.
This commit is contained in:
dingo
2026-03-26 10:33:07 -04:00
+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)