[AKH] Added 3/27 spoilers to mtg-cards-data.txt. Implemented several of the new cards.

This commit is contained in:
fireshoes 2017-03-28 22:25:29 -05:00
parent adc3b2ccac
commit 55b433ae36
6400 changed files with 19315 additions and 14351 deletions

View file

@ -118,7 +118,7 @@ public abstract class GameImpl implements Game, Serializable {
FILTER_FORTIFICATION.add(new CardTypePredicate(CardType.ARTIFACT));
FILTER_FORTIFICATION.add(new SubtypePredicate("Fortification"));
FILTER_LEGENDARY.add(new SupertypePredicate("Legendary"));
FILTER_LEGENDARY.add(new SupertypePredicate(SuperType.LEGENDARY));
}
private transient Object customData;
@ -1733,7 +1733,7 @@ public abstract class GameImpl implements Game, Serializable {
}
planeswalkers.add(perm);
}
if (perm.getSupertype().contains("World")) {
if (perm.isWorld()) {
worldEnchantment.add(perm);
}
if (FILTER_AURA.match(perm, this)) {
@ -1931,7 +1931,7 @@ public abstract class GameImpl implements Game, Serializable {
if (legendary.size() > 1) { //don't bother checking if less than 2 legends in play
for (Permanent legend : legendary) {
FilterPermanent filterLegendName = new FilterPermanent();
filterLegendName.add(new SupertypePredicate("Legendary"));
filterLegendName.add(new SupertypePredicate(SuperType.LEGENDARY));
filterLegendName.add(new NamePredicate(legend.getName()));
filterLegendName.add(new ControllerIdPredicate(legend.getControllerId()));
if (getBattlefield().contains(filterLegendName, legend.getControllerId(), this, 2)) {