feat(phase1): ability model expansion -- ActionGroup, CostGroup, new conditions/effects/filters
Action.cs:
- TargetChooser enum (Self/Opponent/Ally/Random) + TargetSelector.Chooser field
separates "whose entities qualify" from "who makes the selection"
- ActionGroup { LogicOp(And/Or/Xor), ChooserRole, Actions[], Groups[] }
replaces flat Action[] on AbilityDefinition; supports recursive AND/OR/XOR
- ActionGroupLogicOp enum
- CostGroup { LogicOp(And/Or/Xor), ChooserRole, Entries[], Groups[] }
replaces flat CostEntry[] on AbilityDefinition
- CostGroupLogicOp enum
- ChooseOne.ChooserRole (within-action effect branching chooser)
AbilityDefinition.cs:
- ActionGroup? (replaces Actions[]; old field kept [Obsolete] for migration reads)
- CostGroup? (replaces Cost[]; old field kept [Obsolete] for migration reads)
- OnEnterAuraActions / OnLeaveAuraActions (ActionGroup? each)
Triggers.cs:
- OnChanneledTrigger.CardDefinitionId (specific card filter)
- OnRuinActivationTrigger.OccupantFilters / OnUnitOccupyRuinTrigger.OccupantFilters
- AmountComparator (Comparator enum) on OnDamageDealtTrigger, OnDamagePreventedTrigger,
OnHealedTrigger, BeforeDamageAppliedTrigger, OnUnitMPSpentTrigger
Conditions.cs: 12 new condition types (UnitTypeIs, OwnershipIs, IsThisCard,
UnitPropertyCompare, PlayerPropertyCompare, HandContainsCount,
CardDefinitionCountInZone, IsInRangeOfUnit, TileOccupant, SurroundingTile,
SPAccumulationCompare, CostOfCardsInHand)
Effects.cs: 16 new effect types across ArchSpirit zone ops (AscendFromZone,
TransitionFromZone, ModifyChannelRange), Ruin ops (RelocateRuin,
ActivateRuinAbility, DisableRuinForDuration), enhanced channeling
(ChannelCardFromZone), token/spirit (CloneSpiritAsToken, DestroyToken,
ModifySacrificeTokenReturn), player (SkipTurn, ModifyCardsDrawnThisTurn),
zone (StackDeck, SearchAndPlace), unit (ChangeAttackType, ObstructMovementType).
PreventDeathEffect + PreventNextDamageEffect extended with new fields.
Filters.cs: 3 new filter types (Ownership, UnitProperty, TileOccupancy)
AbilitySystem.cs + ActionCandidateGenerator.cs: #pragma disable CS0618 --
authorized readers of backwards-compat obsolete fields
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>