forked from External/mage
fix superfluous warnings in reminder text verify check (related to ddcc6f21)
This commit is contained in:
parent
9a0143be0e
commit
687fe0bc77
3 changed files with 8 additions and 6 deletions
|
|
@ -2034,17 +2034,17 @@ public class VerifyCardDataTest {
|
|||
|
||||
// special check: missing or wrong ability/effect hints
|
||||
Map<Class, String> hints = new HashMap<>();
|
||||
hints.put(FightTargetsEffect.class, "each deals damage equal to its power to the other");
|
||||
hints.put(FightTargetsEffect.class, "Each deals damage equal to its power to the other");
|
||||
hints.put(MenaceAbility.class, "can't be blocked except by two or more");
|
||||
hints.put(ScryEffect.class, "look at the top card of your library. You may put that card on the bottom of your library");
|
||||
hints.put(EquipAbility.class, "equip only as a sorcery.");
|
||||
hints.put(ScryEffect.class, "Look at the top card of your library. You may put that card on the bottom of your library");
|
||||
hints.put(EquipAbility.class, "Equip only as a sorcery.");
|
||||
hints.put(WardAbility.class, "becomes the target of a spell or ability an opponent controls");
|
||||
hints.put(ProliferateEffect.class, "choose any number of permanents and/or players, then give each another counter of each kind already there.");
|
||||
hints.put(ProliferateEffect.class, "Choose any number of permanents and/or players, then give each another counter of each kind already there.");
|
||||
|
||||
for (Class objectClass : hints.keySet()) {
|
||||
String objectHint = hints.get(objectClass);
|
||||
// ability/effect must have description or not
|
||||
boolean needHint = refLowerText.contains(objectHint);
|
||||
boolean needHint = ref.text.contains(objectHint);
|
||||
boolean haveHint = card.getRules().stream().anyMatch(rule -> rule.contains(objectHint));
|
||||
if (needHint != haveHint) {
|
||||
warn(card, "card have " + objectClass.getSimpleName() + " but hint is wrong (it must be " + (needHint ? "enabled" : "disabled") + ")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue