Fix: add ExactSelf to TargetOwnership enum + resolve in AbilitySystem

`ExactSelf` was accepted by the admin builder dropdown but crashed on
deserialization because the TargetOwnership enum was missing the value.

- Added `ExactSelf` to `TargetOwnership` enum in Action.cs
- BuildCandidates treats ExactSelf like Self/Owner (actor's player pool)
- ResolveTargets post-filters to ctx.Source.InstanceId when ExactSelf

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-08 17:47:59 -04:00
co-authored by Claude Happy
parent 3c16fcfce5
commit bc65e8b9d4
2 changed files with 6 additions and 2 deletions
@@ -32,7 +32,7 @@ public sealed class AffinityExpr
public enum TargetScope { Hand, Deck, Discard, Battlefield, Player, AnyZone }
public enum TargetType { Unit, ArchSpirit, Spirit, SpiritToken, Ruin, Tile, Card, Player }
public enum TargetOwnership { Self, Owner, Ally, Enemy, Any, Random, Target }
public enum TargetOwnership { Self, ExactSelf, Owner, Ally, Enemy, Any, Random, Target }
public sealed class TargetCount
{