From 373672810b2dba73ff28b5673d54a54429b9a3ed Mon Sep 17 00:00:00 2001 From: coppro Date: Fri, 22 Aug 2008 03:55:12 +0000 Subject: [PATCH] Tweaks to color-defining CDA abilities - no longer detect colors in card names. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1159 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic.mse-game/script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index a6c70765..483a1b20 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -98,7 +98,7 @@ land_to_color := { text_to_color := { # Note: running filter_text is quite slow, do a quick 'contains' check first if contains(match: card_name) then ( - text := filter_text(match: regex_escape(card_name)+"()? 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)+"()? \\.") if text != "" then ( if contains(text, match: "all colors") then ( colors := "WUBRG"