Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtelolahy committed Nov 25, 2023
1 parent 65ffc64 commit cedd93a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ struct EffectActivateCounterCards: EffectResolver {
func resolve(state: GameState, ctx: EffectContext) throws -> [GameAction] {
let playerObj = state.player(ctx.actor)
let playReqContext = PlayReqContext(actor: ctx.actor, event: ctx.event)

let counterOptions = playerObj.hand.cards.compactMap {
CounterActionResolver.counterAction(card: $0, player: ctx.actor, state: state, ctx: playReqContext)
}

guard counterOptions.isNotEmpty else {
return []
}

var options = counterOptions.reduce(into: [String: GameAction]()) {
$0[$1.card] = $1.action
}
options[.pass] = .group([])

let chooseOne = try GameAction.validateChooseOne(
chooser: ctx.actor,
options: options,
Expand Down
1 change: 0 additions & 1 deletion WildWestOnline.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
}
},
{
"enabled" : false,
"target" : {
"containerPath" : "container:GameKit",
"identifier" : "SimulationTests",
Expand Down

0 comments on commit cedd93a

Please sign in to comment.