Commit 2f96d72f authored by coppro's avatar coppro

Tweaks to color-defining CDA abilities - no longer detect colors in card names.

parent 749a2c50
...@@ -98,7 +98,7 @@ land_to_color := { ...@@ -98,7 +98,7 @@ land_to_color := {
text_to_color := { text_to_color := {
# Note: running filter_text is quite slow, do a quick 'contains' check first # Note: running filter_text is quite slow, do a quick 'contains' check first
if contains(match: card_name) then ( if contains(match: card_name) then (
text := filter_text(match: regex_escape(card_name)+"(</[-a-z]+>)? is (colorless|all colors|((blue|white|green|red|black)((,|,? and) (blue|white|green|red|black))*))\\.") text := filter_text(match: "is (colorless|all colors|((blue|white|green|red|black)((,|,? and) (blue|white|green|red|black))*))", in_context: regex_escape(card_name)+"(</[-a-z]+>)? <match>\\.")
if text != "" then ( if text != "" then (
if contains(text, match: "all colors") then ( if contains(text, match: "all colors") then (
colors := "WUBRG" colors := "WUBRG"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment