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:
Oleg Agafonov 2023-11-02 12:32:58 +04:00
parent 81d44e615f
commit 46911a82bb
2 changed files with 169 additions and 59 deletions

View file

@ -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();