manabrew-engine 0.2.4

Magic: The Gathering rules engine — a Rust port of Forge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::card::valid_filter::MatchContext;
use crate::card::Card;

pub(crate) fn matches_selector_domain_predicate(
    raw: &str,
    _card: &Card,
    _context: MatchContext<'_>,
) -> Option<bool> {
    let lower = raw.trim().to_ascii_lowercase();
    if lower.starts_with("castsa ")
        || lower == "canenchantsource"
        || lower.starts_with("hasability ")
    {
        return Some(false);
    }
    None
}