diff --git a/lib/infrastructure/genshin_service.dart b/lib/infrastructure/genshin_service.dart index 4052b2bcd..5de3d715c 100644 --- a/lib/infrastructure/genshin_service.dart +++ b/lib/infrastructure/genshin_service.dart @@ -178,7 +178,7 @@ class GenshinServiceImpl implements GenshinService { List getCharacterImgsUsingWeapon(String key) { final weapon = getWeapon(key); final imgs = []; - for (final char in _charactersFile.characters) { + for (final char in _charactersFile.characters.where((el) => !el.isComingSoon)) { for (final build in char.builds) { final isBeingUsed = build.weaponImages.contains(weapon.image); final img = Assets.getCharacterPath(char.image); @@ -211,7 +211,7 @@ class GenshinServiceImpl implements GenshinService { List getCharacterImgsUsingArtifact(String key) { final artifact = getArtifact(key); final imgs = []; - for (final char in _charactersFile.characters) { + for (final char in _charactersFile.characters.where((el) => !el.isComingSoon)) { for (final build in char.builds) { final isBeingUsed = build.artifacts.any((a) => a.one == artifact.image || a.multiples.any((m) => m.image == artifact.image));