feat(phase10): ChannelCardFromZone, ObstructMovementType, and pause-model completions
- Implement ChannelCardFromZoneEffect: zone lookup, dest-player resolution (Self/Target/Opponent/Ally/Random/Choice), channel-range tile selection, affinity check, cost deduction, KeepInZone, TargetTile pause, board placement with aura/passive hooks and Channeled trigger - Add PendingPlayerPick.EffectType="ChannelCardFromZone" dispatch in ResumePlayerPick: random-tile path + chained PendingTilePick for TargetTile=true - Add ResumeTilePick case "ChannelCardFromZone": place card at chosen tile under DestPlayerAccountId, affinity/cost/KeepInZone-aware - Implement ObstructMovementTypeEffect: stores ActiveEffect marker; ApplyReversal is no-op (duration:null guard); BuildBlockedSet extended via AbilitySystem.GetUnitsObstructingMovementType to honour obstructors for pathfinding (e.g. Walk unit blocking Flight paths) - Add PendingTilePick.DestPlayerAccountId and .EffectJson fields - Add PendingPlayerPick.EffectJson field - Thread ctx.ContinuationActions + ctx.ActivationRange through AbilityContext so ExecuteEffect can populate pause models without an extra method parameter 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:
@@ -910,3 +910,42 @@ public sealed record GameRevealChoicePickRequest(
|
||||
|
||||
/// <summary>Acknowledged response for a reveal-choice pick submission.</summary>
|
||||
public sealed record GameRevealChoicePickResponse(bool Success);
|
||||
|
||||
/// <summary>
|
||||
/// Sent by the chooser (Opponent/Ally) to supply target picks for a paused leaf action.
|
||||
/// The same <see cref="AbilityTarget"/> shape used by game.activate_ability is reused here.
|
||||
/// </summary>
|
||||
public sealed record GameTargetPickRequest(
|
||||
Guid SessionId,
|
||||
string RequestId,
|
||||
IReadOnlyList<AbilityTarget> Targets);
|
||||
|
||||
/// <summary>Acknowledged response for a target pick submission.</summary>
|
||||
public sealed record GameTargetPickResponse(bool Success);
|
||||
|
||||
/// <summary>
|
||||
/// Sent by the chooser to pick a specific tile for an effect that requires one
|
||||
/// (e.g. CloneSpiritAsToken with DestinationScope=TargetTile).
|
||||
/// </summary>
|
||||
public sealed record GameTilePickRequest(
|
||||
Guid SessionId,
|
||||
string RequestId,
|
||||
/// <summary>The chosen tile coordinates.</summary>
|
||||
int X,
|
||||
int Y);
|
||||
|
||||
/// <summary>Acknowledged response for a tile pick submission.</summary>
|
||||
public sealed record GameTilePickResponse(bool Success);
|
||||
|
||||
/// <summary>
|
||||
/// Sent by the chooser to pick a specific player for an effect that requires one
|
||||
/// (e.g. ChannelCardFromZoneEffect with UnderControlOf=Choice).
|
||||
/// </summary>
|
||||
public sealed record GamePlayerPickRequest(
|
||||
Guid SessionId,
|
||||
string RequestId,
|
||||
/// <summary>AccountId of the chosen player.</summary>
|
||||
string PickedPlayerId);
|
||||
|
||||
/// <summary>Acknowledged response for a player pick submission.</summary>
|
||||
public sealed record GamePlayerPickResponse(bool Success);
|
||||
|
||||
Reference in New Issue
Block a user