effects.module
README.md
cardsKit.effects
Card effects in a queue that resolves one after another, in order. Effects.queue() with push (to the back), pushNext (to the front), run(ctx) (until idle or waiting for a player's choice) and answer(choice); effects a handler adds with ctx.now resolve before the rest of the queue; a failing effect is logged and skipped. Built-in kinds: draw, discard (the player chooses), damage (block soaks first), block, heal, gain, reshuffle, log; Effects.define(kind, handler, describe) adds more. The CardTable resolves every played card's effects through it on the dealer.