Music, Dex and C-Gear skins will not work if there

are multiple. Add ZUKAN, CGEAR, and MUSICAL to the list of things to return random files for
This commit is contained in:
zurgeg
2022-04-09 10:20:40 -04:00
committed by GitHub
parent 82b24eadb6
commit 829902fc18

View File

@@ -200,7 +200,7 @@ def download_list(dlc_path, post):
attr2 = post.get("attr2", None)
attr3 = post.get("attr3", None)
if post["gamecd"].startswith("IRA") and attr1.startswith("MYSTERY"):
if post["gamecd"].startswith("IRA") and (attr1.startswith("MYSTERY") or attr1.startswith("CGEAR") or attr1.startswith("ZUKAN") or attr1.startswith("MUSICAL")):
# Pokemon BW Mystery Gifts, until we have a better solution for that
ret = filter_list(list_data, attr1, attr2, attr3)
ret = filter_list_g5_mystery_gift(ret, post["rhgamecd"])