yasuki_core.engine.rules.decisions.ChooseAbilityTarget#

class ChooseAbilityTarget(seat, candidates, source_card_id)[source]#

The seat must choose the target of an activated ability it has announced. The candidates are the cards the ability may legally target — all in play, so a client renders them as board selections.

Attributes:
source_card_idstr

The card whose ability is resolving, whose effects apply to the chosen target.

Methods

ChooseAbilityTarget.__init__(seat, ...)

ChooseAbilityTarget.accepts(response)

Return whether response is a structurally well-formed answer to this request — the right shape, drawn from candidates.

Attributes

source_card_id