Old border occasional wrong printings showing up
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Lee forge-core/src/main/java/forge/item/PaperCardPredicates.java, especialmente printedInAnyEditions() alrededor de las líneas 67-92. Comprueba el ejemplo Badlands|30A frente a una edición 3ED permitida y verifica después que un objeto de carta de una edición no permitida no pase, mientras que una impresión permitida sí lo haga. Se considera terminado cuando allowedEditions filtra la edición real de la carta sin afectar a las rutas que no utilizan este predicado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Dear devs, old border mod has an issue that can't be resolved in the config folder. It's with how allowedEditions is processed in
forge-core/src/main/java/forge/item/PaperCardPredicates.java (lines 67-92)
**Method: **printedInAnyEditions()
**Problem: **The predicate checks if the card name was printed in any allowed edition, then allows all printings of that card to pass - including printings from disallowed editions.
Example: Badlands|30A passes because Badlands exists in 3ED (allowed), but the actual card object is from 30A (not allowed).
**Fix: **We could change line 91 from:
return passes;
to:
return editions.contains(card.getEdition());
I think this fix shouldn't affect vanilla adventure because it doesn't use allowedEditions and so this predicate isn't called.
I've tried to solve it by inverting and using restrictedEditions instead, but then for some reason the PRM (Magic Online Promos) set forces its way in, even passed the restrictedEditions filter. And then there is a noticable lag when entering towns, maybe because the filter list is so long and I have to manually restrict a bunch more individual cards.
For old border and other planes mods, it would be preferential to use allowedEditions, because then we don't have to update config.json when a new set comes out.
Maybe there's a better solution I am not seeing.
Thanks for your help!
- Lenguaje dominante
- Java
- Estrellas
- 2.7k
- Forks
- 1.1k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 344
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Card-Forge/forge
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Card-Forge/forge#12877 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Card-Forge/forge#12710 ·
Los mantenedores suelen responder en 1 día
-
Shandalar "The Drunken Plea" quest completes prematurelyPosiblemente ocupada @Simisays la tomó hace 21 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Card-Forge/forge#12306 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Card-Forge/forge#12206 ·
Los mantenedores suelen responder en 1 día
-
Adventure keep
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Card-Forge/forge#10151 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Card-Forge/forge
Issues similares
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
commons-app/apps-android-commons#7341 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
NationalSecurityAgency/ghidra#10220 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día