mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
cheats: added 2 new special commands (add card to hand, add lands to battlefield), added default special commands (no needs to put it in init.txt)
This commit is contained in:
parent
81d44e615f
commit
46911a82bb
2 changed files with 169 additions and 59 deletions
|
|
@ -20,6 +20,10 @@ public class CardLookup {
|
|||
}
|
||||
|
||||
public Optional<CardInfo> lookupCardInfo(String name, String set) {
|
||||
if (set == null) {
|
||||
return lookupCardInfo(name);
|
||||
}
|
||||
|
||||
Optional<CardInfo> result = lookupCardInfo(new CardCriteria().name(name).setCodes(set))
|
||||
.stream()
|
||||
.findAny();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue