Commit 37222766 authored by twanvl's avatar twanvl

be explicit about nil in sub_type_filter

parent 53408236
...@@ -517,13 +517,15 @@ sub_type_filter := { ...@@ -517,13 +517,15 @@ sub_type_filter := {
input := remove_tag(tag: "<soft") input := remove_tag(tag: "<soft")
lang := language() lang := language()
# What word list to use? # What word list to use?
list_type_rest := if lang.is_creature(type) then "class" list_type_rest :=
else if lang.is_land(type) then "land" if lang.is_creature(type) then "class"
else if lang.is_artifact(type) then "artifact" else if lang.is_land(type) then "land"
else if lang.is_enchantment(type) then "enchantment" else if lang.is_artifact(type) then "artifact"
else if lang.is_spell(type) then "spell" else if lang.is_enchantment(type) then "enchantment"
else if lang.is_planeswalker(type) then "planeswalker" else if lang.is_spell(type) then "spell"
if list_type_rest != "" then ( else if lang.is_planeswalker(type) then "planeswalker"
else nil
if list_type_rest != nil then (
if lang.is_creature(type) or lang.is_tribal(type) then ( if lang.is_creature(type) or lang.is_tribal(type) then (
list_type_first := "race" list_type_first := "race"
) else ( ) else (
......
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