other: fixed typos in omen related code (#13501);

This commit is contained in:
Oleg Agafonov 2025-04-09 01:22:33 +04:00
parent 2a1eebc5fc
commit 1568189c1b
2 changed files with 13 additions and 5 deletions

View file

@ -2560,12 +2560,20 @@ public class VerifyCardDataTest {
refRules[i];
}
}
if (ref.subtypes.contains("Omen")) {
for (int i = 0; i < refRules.length; i++) {
refRules[i] = "Omen " +
ref.types.get(0) + " - " +
ref.faceName + ' ' +
ref.manaCost + " - " +
refRules[i];
}
}
String[] cardRules = card
.getRules()
.stream()
.filter(s -> !(card instanceof CardWithSpellOption) || !s.startsWith("Adventure ") || !s.startsWith("Omen "))
.filter(s -> !(card instanceof CardWithSpellOption) || !(s.startsWith("Adventure ") || s.startsWith("Omen ")))
.collect(Collectors.joining("\n"))
.replace("<br>", "\n")
.replace("<br/>", "\n")