yasuki_core.engine.rules.abilities#

Classes

Ability(phase, label, cost, targets, effects)

An activated ability on an in-play card.

InvestAbility(minimum, maximum, effect)

A card's Invest ability — an optional gold cost paid while recruiting for a one-time enter-play effect (the kicker-style second purchase option).

Functions

ability_for(card)

The activated ability registered for card's printed id, or None.

activatable(game, seat, phase)

The in-play cards seat may activate an ability on right now: controlled, its ability legal in phase, its cost payable, and with at least one legal target.

can_pay(game, card, cost)

Whether card can pay cost — every effect it spends can actually apply: a bow needs the card unbowed, a counter spend needs enough of that counter, a Fate-deck banish needs a card to banish.

invest_for(card)

The Invest ability registered for card's printed id, or None.

production_boost_for(card)

The extra Gold card may add as it bows to produce, or None if it has no boost.