Commit f0ac511e authored by pichoro's avatar pichoro

Modified action param to not include colons or semi-colons.

Modified name param to not include colons or semi-colons and to include regular dashes (because they're legal in Magic card names).
Modified prefix param to accept curly apostrophe (Urza'swalk *shudder*).
Modified landwalk to to_lower() all inputs with "land".
parent 03206cf8
...@@ -1564,12 +1564,12 @@ keyword parameter type: ...@@ -1564,12 +1564,12 @@ keyword parameter type:
script: \{english_number_ordinal({input})\} script: \{english_number_ordinal({input})\}
keyword parameter type: keyword parameter type:
name: action name: action
match: [^(\n]+ match: [^(:;\n]+
separator after is: [.] separator after is: [.]
reminder script: alternative_cost() reminder script: alternative_cost()
keyword parameter type: keyword parameter type:
name: name name: name
match: [^(.,\n—-]+ match: [^(.:;\n—]+
refer script: refer script:
name: normal name: normal
description: No changes made. description: No changes made.
...@@ -1587,7 +1587,7 @@ keyword parameter type: ...@@ -1587,7 +1587,7 @@ keyword parameter type:
description: Prefix for things like "<something>walk" description: Prefix for things like "<something>walk"
optional: false optional: false
# match: [A-Z][a-z, ]*([A-Z][a-z, ]*\xEB00) # commented out because it stopped prefix param from working, version below allows all "walks", including "Dame Judi Denchwalk", doesn't trigger #in middle of sentences, and doesn't trigger in chains of keywords. # match: [A-Z][a-z, ]*([A-Z][a-z, ]*\xEB00) # commented out because it stopped prefix param from working, version below allows all "walks", including "Dame Judi Denchwalk", doesn't trigger #in middle of sentences, and doesn't trigger in chains of keywords.
match: [A-Z][A-Z,a-z ]* match: [A-Z][A-Z,a-z ]*
example: Forest example: Forest
keyword parameter type: keyword parameter type:
name: a name: a
...@@ -1620,7 +1620,7 @@ keyword: ...@@ -1620,7 +1620,7 @@ keyword:
keyword: Landwalk keyword: Landwalk
match: <atom-param>prefix</atom-param>walk match: <atom-param>prefix</atom-param>walk
mode: core mode: core
reminder: This creature is unblockable as long as defending player controls a {param1}. reminder: This creature is unblockable as long as defending player controls a {if match(param1.value, match: " land$") then "{to_lower(param1)}" else "{param1}"}.
keyword: keyword:
keyword: Protection from keyword: Protection from
match: Protection from <atom-param>name</atom-param> match: Protection from <atom-param>name</atom-param>
......
...@@ -470,12 +470,12 @@ keyword parameter type: ...@@ -470,12 +470,12 @@ keyword parameter type:
script: \{english_number_multiple({input})\} script: \{english_number_multiple({input})\}
keyword parameter type: keyword parameter type:
name: action name: action
match: [^(\n]+ match: [^(;:\n]+
separator after is: [.] separator after is: [.]
reminder script: alternative_cost() reminder script: alternative_cost()
keyword parameter type: keyword parameter type:
name: name name: name
match: [^(.,\n—-]+ match: [^(.:;\n—]+
refer script: refer script:
name: normal name: normal
description: No changes made. description: No changes made.
...@@ -488,7 +488,7 @@ keyword parameter type: ...@@ -488,7 +488,7 @@ keyword parameter type:
name: prefix name: prefix
description: Prefix for things like "<something>walk" description: Prefix for things like "<something>walk"
optional: false optional: false
match: [A-Z][A-Z,a-z ]* match: [A-Z][A-Z,a-z ]*
example: Forest example: Forest
keyword parameter type: keyword parameter type:
name: a name: a
......
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