Re-exports§
pub use combat_lki::CombatLki;
Modules§
- attack_
constraints - attack_
cost - Attack cost computation (Propaganda, Ghostly Prison, etc.).
- attack_
requirement - attack_
restriction - attack_
restriction_ type - attacking_
band - block_
cost - Block cost computation (War Cadence, etc.).
- combat_
lki - combat_
util - Static utility methods related to combat.
- global_
attack_ restrictions - selector_
domain
Structs§
- Combat
Damage Event - A combat damage event returned from resolve_damage_step. Used to fire DamageDone and LifeGained triggers from game_loop.rs.
- Combat
Damage Resolution - Combat
State - Tracks combat state for the current combat phase.
Enums§
- Defender
Id - Identifies the target of an attack: a player or a permanent (planeswalker/battle).
- Lure
Type - What kind of lure effect an attacker has.
Functions§
- can_
creature_ block - Check if a specific blocker can legally block a specific attacker.
- compute_
must_ block_ targets - Get attackers that
blocker_idMUST block (if able). - filter_
legal_ blockers - Filter blockers to only those that can legally block at least one attacker.
- get_
available_ attackers - Get available attackers: untapped creatures that can attack.
- get_
available_ blockers - Get available blockers: untapped creatures that can block.
- get_
lure_ type - Determine the lure type of an attacker based on its keywords.
- get_
possible_ defenders - Get all possible defenders for the attacking player.
- validate_
blocks - Validate blocker assignments and return invalid (blocker, attacker) pairs.