yasuki_core.engine.rules.modifiers.Modifier#
- class Modifier(source_id, target_id, stat, amount, duration)[source]#
A continuous effect that adjusts one card’s stat by a fixed amount while active. Every stat change — a counter’s grant, an attachment’s bonus, an ability’s effect — is one of these, summed on demand to compute a card’s effective stat.
- Attributes:
- source_id
str The card the modifier comes from — used to expire
WHILE_SOURCE_IN_PLAYmodifiers when it leaves play and to attribute the effect.- target_id
str The card whose stat is adjusted.
- stat
Stat Which stat is adjusted.
- amount
int The bonus (positive) or penalty (negative) added to the stat.
- duration
Duration When the modifier stops applying.
- source_id
Methods
Modifier.__init__(source_id, target_id, ...)Attributes
source_idtarget_idstatamountduration