forked from External/mage
New M15 Rendering for Unstable lands
(Way to default to 'UST' for the cheat button.
This commit is contained in:
parent
a368c93845
commit
6e15835232
1 changed files with 5 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ import java.util.stream.Collectors;
|
|||
import mage.abilities.Ability;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.Cards;
|
||||
import mage.cards.repository.CardCriteria;
|
||||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.choices.Choice;
|
||||
|
|
@ -338,7 +339,10 @@ public final class SystemUtil {
|
|||
String cardName = matchCommand.group(3);
|
||||
Integer amount = Integer.parseInt(matchCommand.group(4));
|
||||
|
||||
List<CardInfo> cards = CardRepository.instance.findCards(cardName);
|
||||
List<CardInfo> cards = CardRepository.instance.findCards(new CardCriteria().setCodes("UST").name(cardName));
|
||||
if (cards.isEmpty()) {
|
||||
cards = CardRepository.instance.findCards(cardName);
|
||||
}
|
||||
if (cards.isEmpty()) {
|
||||
if ("token".equalsIgnoreCase(zone)) {
|
||||
// eg: token:Human:HippoToken:1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue