mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
fix verify failure
This commit is contained in:
parent
6008dc279e
commit
168e2a27ec
2 changed files with 9 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import mage.cards.CardImpl;
|
|||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
|
|
@ -29,6 +30,8 @@ public final class HaruHiddenTalent extends CardImpl {
|
|||
|
||||
public HaruHiddenTalent(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.PEASANT);
|
||||
this.subtype.add(SubType.ALLY);
|
||||
|
|
|
|||
|
|
@ -2079,6 +2079,7 @@ public class VerifyCardDataTest {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void checkSubtypes(Card card, MtgJsonCard ref) {
|
||||
if (skipListHaveName(SKIP_LIST_SUBTYPE, card.getExpansionSetCode(), card.getName())) {
|
||||
return;
|
||||
|
|
@ -2343,7 +2344,11 @@ public class VerifyCardDataTest {
|
|||
|
||||
|
||||
// search and check dies related abilities
|
||||
String rules = triggeredAbility.getRule();
|
||||
// remove reminder text
|
||||
String rules = triggeredAbility
|
||||
.getRule()
|
||||
.replaceAll("(?i) <i>\\(.+\\)</i>", "")
|
||||
.replaceAll("(?i) \\(.+\\)", "");
|
||||
if (ignoredAbilities.stream().anyMatch(rules::contains)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue