Subtype Update for "Z" Cards.

Updated the subtypes for all implemented cards in the "Z" package.
Corrected typo in the SubType enum for type BOAR.
Added a varargs function to allow all creature types to be added in a single function call rather than 1-4.
This commit is contained in:
Justin Herlehy 2017-07-17 17:17:07 -07:00
parent e2ccc5c87f
commit 1daad30559
78 changed files with 288 additions and 246 deletions

View file

@ -73,7 +73,7 @@ public enum SubType {
BIRD("Bird", SubTypeSet.CreatureType, false),
BITH("Bith", SubTypeSet.CreatureType, true), // Star Wars
BLINKMOTH("Blinkmoth", SubTypeSet.CreatureType, false),
BOARD("Boar", SubTypeSet.CreatureType, false),
BOAR("Boar", SubTypeSet.CreatureType, false),
BRINGER("Bringer", SubTypeSet.CreatureType, false),
BRUSHWAGG("Brushwagg", SubTypeSet.CreatureType, false),

View file

@ -3,6 +3,7 @@ package mage.util;
import mage.constants.SubType;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
@ -29,6 +30,10 @@ public class SubTypeList extends ArrayList<SubType> {
return super.add(s);
}
public boolean add(SubType... subTypes) {
return Collections.addAll(this, subTypes);
}
public boolean add(String s) {
return add(SubType.byDescription(s));
}