mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Merge remote-tracking branch 'remotes/upstream/master'
This commit is contained in:
commit
b9f4d9523c
81 changed files with 297 additions and 253 deletions
|
|
@ -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),
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue