mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Merge fix
This commit is contained in:
parent
11bb5e6608
commit
6151ec3889
1 changed files with 9 additions and 1 deletions
|
|
@ -1,12 +1,17 @@
|
||||||
package org.mage.test.serverside.performance;
|
package org.mage.test.serverside.performance;
|
||||||
|
|
||||||
|
import mage.MageObject;
|
||||||
import mage.cards.repository.CardScanner;
|
import mage.cards.repository.CardScanner;
|
||||||
|
import mage.util.CardUtil;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author JayDi85
|
||||||
|
*/
|
||||||
public class RulesFormatTest {
|
public class RulesFormatTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
@ -20,7 +25,10 @@ public class RulesFormatTest {
|
||||||
CardScanner.getAllCards().forEach(card -> {
|
CardScanner.getAllCards().forEach(card -> {
|
||||||
List<String> possibleObjectNames = new ArrayList<>();
|
List<String> possibleObjectNames = new ArrayList<>();
|
||||||
// any card names
|
// any card names
|
||||||
possibleObjectNames.add(card.getName());
|
CardUtil.getObjectPartsAsObjects(card)
|
||||||
|
.stream()
|
||||||
|
.map(MageObject::getName)
|
||||||
|
.forEach(possibleObjectNames::add);
|
||||||
// all names from GainAbilityAttachedEffect
|
// all names from GainAbilityAttachedEffect
|
||||||
possibleObjectNames.add("creature");
|
possibleObjectNames.add("creature");
|
||||||
possibleObjectNames.add("permanent");
|
possibleObjectNames.add("permanent");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue